Searched refs:cc_unit (Results 1 – 10 of 10) sorted by relevance
| /xnu-10063.141.1/osfmk/corecrypto/ |
| H A D | ccn_internal.h | 78 r = (cc_unit)tmp; \ 84 cc_unit _c = (tmp) >> CCN_UNIT_BITS; \ 86 r = (cc_unit)tmp; \ 93 r = (cc_unit)tmp; \ 99 cc_unit _b = (tmp) >> (2 * CCN_UNIT_BITS - 1); \ 101 r = (cc_unit)tmp; \ 123 r = (cc_unit)lo; \ 132 void ccn_set(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s); 137 ccn_setn(cc_size n, cc_unit *cc_counted_by (n)r, const cc_size s_size, const cc_unit *cc_counted_by… in ccn_setn() 151 ccn_clear(cc_size n, cc_unit *cc_sized_by (n)r) in ccn_clear() [all …]
|
| H A D | cc_memory.h | 60 cc_unit *(*CC_SPTR(cc_ws, alloc))(cc_ws_t ws, cc_size n); 79 cc_unit *cc_counted_by(n) cc_ws_alloc(cc_ws_t ws, cc_size n); 108 cc_unit *ws##_buf = (cc_unit *)cc_malloc_clear(ccn_sizeof_n(n)); \ 125 cc_unit ws##_buf[CC_MAX_EVAL((n), 1U)]; \ 153 ccn_clear(ws->offset - _ws_offset, &((cc_unit *)ws->ctx)[_ws_offset]);
|
| H A D | ccmode_gcm_gf_mult.c | 51 const cc_unit m1 = 0x1084210842108421; in bmul64() 52 const cc_unit m2 = 0x2108421084210842; in bmul64() 53 const cc_unit m3 = 0x4210842108421084; in bmul64() 54 const cc_unit m4 = 0x8421084210842108; in bmul64() 55 const cc_unit m5 = 0x0842108421084210; in bmul64() 86 cc_unit a_lo, a_hi, b_lo, b_hi; in ccmode_gcm_gf_mult_64() 87 cc_unit z0_lo, z0_hi, z1_lo, z1_hi, z2_lo, z2_hi; in ccmode_gcm_gf_mult_64() 113 cc_store64_be((cc_unit)z_hi, c + 8); in ccmode_gcm_gf_mult_64() 114 cc_store64_be((cc_unit)(z_hi >> 64), c); in ccmode_gcm_gf_mult_64()
|
| H A D | ccmode_internal.h | 100 void ccmode_xts_mult_alpha(cc_unit *tweak); 129 cc_unit u[]; 185 cc_unit u[]; 229 cc_unit u[]; 265 cc_unit u[]; 307 cc_unit u[]; 366 cc_unit u[]; 376 cc_unit u[]; 493 cc_unit u[]; 546 cc_unit u[];
|
| /xnu-10063.141.1/EXTERNAL_HEADERS/corecrypto/ |
| H A D | ccn.h | 22 typedef uint64_t cc_unit; // 64 bit unit typedef 27 typedef uint32_t cc_unit; // 32 bit unit typedef 36 #define CCN_UNIT_BITS (sizeof(cc_unit) * 8) 37 #define CCN_UNIT_MASK ((cc_unit)~0) 45 #define ccn_sizeof_n(_n_) (sizeof(cc_unit) * (_n_)) 54 #define ccn_nof_size(_size_) (((_size_) + sizeof(cc_unit) - 1) / sizeof(cc_unit)) 74 void ccn_set_bit(cc_unit *cc_indexable x, size_t k, cc_unit v); 102 #define ccn64_32(a1,a0) (((const cc_unit)a1) << 32 | ((const cc_unit)a0)) 187 size_t ccn_bitlen(cc_size n, const cc_unit *cc_counted_by(n) s); 202 int ccn_cmp(cc_size n, const cc_unit *cc_counted_by(n) s, const cc_unit *cc_counted_by(n) t) __asm_… [all …]
|
| H A D | ccder.h | 95 size_t ccder_sizeof_implicit_integer(ccder_tag implicit_tag, cc_size n, const cc_unit *s); 98 size_t ccder_sizeof_implicit_octet_string(ccder_tag implicit_tag, cc_size n, const cc_unit *s); 110 size_t ccder_sizeof_integer(cc_size n, const cc_unit *s); 116 size_t ccder_sizeof_octet_string(cc_size n, const cc_unit *s); 170 uint8_t *ccder_encode_implicit_integer(ccder_tag implicit_tag, cc_size n, const cc_unit *s, const u… 173 uint8_t *ccder_encode_integer(cc_size n, const cc_unit *s, const uint8_t *der, uint8_t *der_end); 182 uint8_t *ccder_encode_implicit_octet_string(ccder_tag implicit_tag, cc_size n, const cc_unit *s, co… 185 uint8_t *ccder_encode_octet_string(cc_size n, const cc_unit *s, const uint8_t *der, uint8_t *der_en… 319 const uint8_t *ccder_decode_uint(cc_size n, cc_unit *r, const uint8_t *der, const uint8_t *der_end); 333 const uint8_t *ccder_decode_uint_strict(cc_size n, cc_unit *r, const uint8_t *der, const uint8_t *d… [all …]
|
| H A D | ccder_blob.h | 67 …licit_integer(ccder_blob *into, ccder_tag implicit_tag, cc_size n, const cc_unit *cc_counted_by(n)… 70 bool ccder_blob_encode_integer(ccder_blob *into, cc_size n, const cc_unit *cc_counted_by(n) s); 79 bool ccder_blob_encode_octet_string(ccder_blob *into, cc_size n, const cc_unit *cc_counted_by(n) s); 82 …_octet_string(ccder_blob *into, ccder_tag implicit_tag, cc_size n, const cc_unit *cc_counted_by(n)… 128 bool ccder_blob_decode_uint(ccder_read_blob *from, cc_size n, cc_unit *cc_counted_by(n)); 131 bool ccder_blob_decode_uint_strict(ccder_read_blob *from, cc_size n, cc_unit *cc_counted_by(n)); 134 bool ccder_blob_decode_seqii(ccder_read_blob *from, size_t n, cc_unit *cc_counted_by(n) r, cc_unit … 137 …blob_decode_seqii_strict(ccder_read_blob *from, size_t n, cc_unit *cc_counted_by(n) r, cc_unit *cc…
|
| H A D | cczp.h | 32 cc_unit pre##bitlen; \ 37 cc_unit pre##ccn[]; 51 const cc_unit * cc_indexable cczp_prime(cczp_const_t zp);
|
| H A D | ccrsa.h | 106 #define ccrsa_ctx_m(_ctx_) ((cc_unit *)cc_unsafe_forge_bidi_indexable((_ctx_)->pb_ccn, ccn_… 109 …e_forge_bidi_indexable(_ctx_, _nbytes_, _offset_) ((cc_unit *)cc_unsafe_forge_bidi_indexable((cc_u… 158 int ccrsa_init_pub(ccrsa_pub_ctx_t pubk, const cc_unit *modulus, 159 const cc_unit *exponent); 241 int ccrsa_pub_crypt(ccrsa_pub_ctx_t key, cc_unit *cc_unsafe_indexable out, const cc_unit *cc_unsafe…
|
| H A D | ccdigest.h | 77 #define ccdigest_ccn(_state_) ((cc_unit *)((ccdigest_state_t)(_state_)))
|