| /xnu-11215/osfmk/corecrypto/ |
| H A D | ccn_internal.h | 165 cc_unit ccn_abs(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const cc… 260 cc_unit ccn_cond_add(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_b… 275 cc_unit ccn_cond_rsub(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_… 290 cc_unit ccn_cond_sub(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_b… 317 void ccn_mux(cc_size n, cc_unit s, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) a, … 358 cc_unit ccn_mul1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const c… 372 cc_unit ccn_addmul1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cons… 553 cc_unit ccn_add_ws(cc_ws_t ws, cc_size count, cc_unit *r, const cc_unit *s, const cc_unit *t); 556 cc_unit ccn_sub_ws(cc_ws_t ws, cc_size count, cc_unit *r, const cc_unit *s, const cc_unit *t); 559 cc_unit ccn_add1_ws(cc_ws_t ws, cc_size n, cc_unit *r, const cc_unit *s, cc_unit v); [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-11215/EXTERNAL_HEADERS/corecrypto/ |
| H A D | ccn.h | 36 #define CCN_UNIT_BITS (sizeof(cc_unit) * 8) 37 #define CCN_UNIT_MASK ((cc_unit)~0) 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)) 218 int ccn_cmpn(cc_size ns, const cc_unit *cc_counted_by(ns) s, cc_size nt, const cc_unit *cc_counted_… 223 cc_unit ccn_sub(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const cc… 228 cc_unit ccn_add(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, const cc… 233 cc_unit ccn_add1(cc_size n, cc_unit *cc_counted_by(n) r, const cc_unit *cc_counted_by(n) s, cc_unit… 362 void ccn_seti(cc_size n, cc_unit *cc_counted_by(n) r, cc_unit v); [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); 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… 342 const uint8_t *ccder_decode_seqii(cc_size n, cc_unit *r, cc_unit *s, const uint8_t *der, const uint… [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_)))
|