Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 23 of 23) sorted by relevance

/xnu-11215/EXTERNAL_HEADERS/corecrypto/
H A Dccmode.h34 …t(const struct ccmode_ecb *mode, ccecb_ctx *ctx, size_t key_len, const void *cc_sized_by(key_len) …
40 size_t key_len,
47 size_t key_len,
78 …t(const struct ccmode_cbc *mode, cccbc_ctx *ctx, size_t key_len, const void *cc_sized_by(key_len) …
90 size_t key_len,
123 size_t key_len,
146 size_t key_len,
173 size_t key_len,
196 size_t key_len,
769 size_t key_len,
[all …]
H A Dccmode_impl.h72 …int (*CC_SPTR(ccmode_cbc, init))(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, size_t key_len, con…
85 …init))(const struct ccmode_cfb *cfb, cccfb_ctx *ctx, size_t key_len, const void *key, const void *…
97 …init))(const struct ccmode_cfb8 *cfb8, cccfb8_ctx *ctx, size_t key_len, const void *key, const voi…
110 …init))(const struct ccmode_ctr *mode, ccctr_ctx *ctx, size_t key_len, const void *key, const void …
123 …init))(const struct ccmode_ofb *ofb, ccofb_ctx *ctx, size_t key_len, const void *key, const void *…
193 …int (*CC_SPTR(ccmode_ccm, init))(const struct ccmode_ccm *ccm, ccccm_ctx *ctx, size_t key_len, con…
234 …onst struct ccmode_omac *omac, ccomac_ctx *ctx, size_t tweak_len, size_t key_len, const void *key);
251 size_t key_len, const uint8_t *key);
275 size_t key_len,
H A Dcchmac.h57 size_t key_len, const void *key);
63 void cchmac(const struct ccdigest_info *di, size_t key_len,
H A Dccmode_siv.h196 size_t key_len, const uint8_t *key,
H A Dccmode_siv_hmac.h168 size_t key_len,
/xnu-11215/osfmk/corecrypto/
H A Dcchmac_init.c51 size_t key_len, const void *key_data) in cchmac_init() argument
59 if (key_len <= di->block_size) { in cchmac_init()
60 for (; byte < key_len; ++byte) { in cchmac_init()
66 ccdigest_update(di, cchmac_digest_ctx(di, hc), key_len, key); in cchmac_init()
68 key_len = di->output_size; in cchmac_init()
69 for (; byte < key_len; ++byte) { in cchmac_init()
74 if (key_len < di->block_size) { in cchmac_init()
75 cc_memset(cchmac_data(di, hc) + key_len, 0x5c, di->block_size - key_len); in cchmac_init()
H A Dcccbc.c61 size_t key_len, in cccbc_init() argument
62 const void *cc_sized_by(key_len)key) in cccbc_init()
66 return mode->init(mode, ctx, key_len, key); in cccbc_init()
123 size_t key_len, in cccbc_one_shot() argument
124 const void *cc_sized_by(key_len)key, in cccbc_one_shot()
140 key_len, in cccbc_one_shot()
152 size_t key_len, in cccbc_one_shot_explicit() argument
156 const void *cc_sized_by(key_len)key, in cccbc_one_shot_explicit()
175 rc = mode->init(mode, ctx, key_len, key); in cccbc_one_shot_explicit()
H A Dcchmac.c43 size_t key_len, const void *key, in cchmac() argument
51 cchmac_init(di, hc, key_len, key); in cchmac()
/xnu-11215/bsd/vfs/
H A Dvfs_cprotect.c97 cpx_size(size_t key_len) in cpx_size() argument
112 cpx_alloc(size_t key_len, bool needs_ctx) in cpx_alloc() argument
117 #pragma unused(key_len, needs_ctx) in cpx_alloc()
124 assert(cpx_size(key_len) <= PAGE_SIZE); in cpx_alloc()
133 if (key_len > VFS_CP_MAX_CACHEBUFLEN) { in cpx_alloc()
146 cpx_init(cpx, key_len); in cpx_alloc()
229 cpx_init(cpx_t cpx, size_t key_len) in cpx_init() argument
237 assert(key_len <= UINT16_MAX); in cpx_init()
320 cpx->cpx_key_len = key_len; in cpx_set_key_len()
404 uint16_t key_len = cpx_key_len(src); in cpx_copy() local
[all …]
/xnu-11215/libkern/crypto/
H A Dcorecrypto_aes.c36 aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]) in aes_encrypt_key() argument
45 return cccbc_init(cbc, cx[0].ctx, key_len, key); in aes_encrypt_key()
73 aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]) in aes_decrypt_key() argument
82 return cccbc_init(cbc, cx[0].ctx, key_len, key); in aes_decrypt_key()
135 aes_encrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx) in aes_encrypt_key_gcm() argument
142 return ccgcm_init(gcm, ctx, key_len, key); in aes_encrypt_key_gcm()
146 aes_encrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in_iv, ccgc… in aes_encrypt_key_with_iv_gcm() argument
153 return g_crypto_funcs->ccgcm_init_with_iv_fn(gcm, ctx, key_len, key, in_iv); in aes_encrypt_key_with_iv_gcm()
229 aes_decrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx) in aes_decrypt_key_gcm() argument
236 return ccgcm_init(gcm, ctx, key_len, key); in aes_decrypt_key_gcm()
[all …]
/xnu-11215/iokit/DriverKit/crypto/
H A Daes.h75 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
87 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
98 aes_rval aes_encrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
99 aes_rval aes_encrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
108 aes_rval aes_decrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
109 aes_rval aes_decrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
/xnu-11215/libkern/libkern/crypto/
H A Daes.h75 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
87 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
98 aes_rval aes_encrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
99 aes_rval aes_encrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
108 aes_rval aes_decrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
109 aes_rval aes_decrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
H A Dregister_crypto.h57 unsigned long key_len, const void *key);
63 typedef void (*cchmac_fn_t)(const struct ccdigest_info *di, unsigned long key_len,
/xnu-11215/bsd/sys/
H A Dcprotect.h145 unsigned key_len; member
155 unsigned key_len; member
196 void cpx_init(cpx_t, size_t key_len);
200 __attribute__((const)) size_t cpx_size(size_t key_len);
210 void cpx_set_key_len(struct cpx *, uint16_t key_len);
/xnu-11215/bsd/nfs/gss/
H A Dgss_krb5_mech.h149 uint32_t key_len; member
216 size_t key_len; member
H A Dgss_krb5_mech.c188 krb_key->key_len = len; in gss_krb5_key_set()
195 cc_clear(krb_key->key_len, krb_key->key_val); in gss_krb5_key_free()
196 kfree_data(krb_key->key_val, krb_key->key_len); in gss_krb5_key_free()
1088 ctx->keylen = ctx->gss_ctx->ctx_key.key.key_len; in gss_crypto_ctx_init()
2615 xb_get_32(error, &xb, lctx->ctx_key.key.key_len); in xdr_lucid_context()
2620 if (lctx->ctx_key.key.key_len != keylen) { in xdr_lucid_context()
2623 lctx->ctx_key.etype, lctx->ctx_key.key.key_len, keylen); in xdr_lucid_context()
/xnu-11215/libsyscall/wrappers/skywalk/
H A Dos_channel.c1466 const uint32_t key_len) in os_channel_attr_set_key() argument
1470 if ((key == NULL && key_len != 0) || (key != NULL && key_len == 0) || in os_channel_attr_set_key()
1471 (key_len != 0 && key_len > NEXUS_MAX_KEY_LEN)) { in os_channel_attr_set_key()
1476 if (key_len == 0 && cha->cha_key != NULL) { in os_channel_attr_set_key()
1479 } else if (key != NULL && key_len != 0) { in os_channel_attr_set_key()
1487 cha->cha_key_len = key_len; in os_channel_attr_set_key()
1488 bcopy(key, cha->cha_key, key_len); in os_channel_attr_set_key()
1631 uint32_t *key_len) in os_channel_attr_get_key() argument
1635 if (key_len == NULL) { in os_channel_attr_get_key()
1643 if (*key_len >= cha->cha_key_len) { in os_channel_attr_get_key()
[all …]
H A Dos_nexus.c160 const uuid_t exec_uuid, const void *key, const uint32_t key_len, in os_nexus_controller_bind_provider_instance() argument
166 key, key_len, bind_flags); in os_nexus_controller_bind_provider_instance()
/xnu-11215/osfmk/kern/
H A Dexclaves_resource.c189 get_bucket(table_t *table, const void *key, size_t key_len) in get_bucket() argument
191 const uint32_t idx = os_hash_jenkins(key, key_len) & in get_bucket()
200 table_put(table_t *table, const void *key, size_t key_len, table_item_t *item) in table_put() argument
206 queue_head_t *head = get_bucket(table, key, key_len); in table_put()
214 table_get(table_t *table, const void *key, size_t key_len, bool (^cb)(void *))
216 const queue_head_t *head = get_bucket(table, key, key_len);
222 if (elem->i_key_len == key_len && in qe_foreach_element()
267 bool (^cb)(const void *key, size_t key_len, void *value))
324 ^(__unused const void *key, __unused size_t key_len, void *value) {
335 ^(__unused const void *key, __unused size_t key_len, void *value) {
/xnu-11215/bsd/skywalk/channel/
H A Dos_channel.h259 const void *key, const uint32_t key_len);
273 void *key, uint32_t *key_len);
/xnu-11215/bsd/skywalk/nexus/
H A Dnexus_common.h410 const void *key, const uint32_t key_len, const uint32_t bind_flags) in __nexus_bind_req_prepare() argument
432 nbr->nb_key_len = key_len; in __nexus_bind_req_prepare()
H A Dos_nexus.h369 const uint32_t key_len, const uint32_t bind_flags);
1045 const uint32_t key_len, const uint32_t bind_flags);
H A Dnexus_kern.c1223 const uuid_t exec_uuid, const void *key, const uint32_t key_len, in kern_nexus_controller_bind_provider_instance() argument
1237 key, key_len, bind_flags); in kern_nexus_controller_bind_provider_instance()