Home
last modified time | relevance | path

Searched refs:CTR_RFC3686_NONCE_SIZE (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/drivers/crypto/nx/
Dnx-aes-ctr.c60 if (key_len < CTR_RFC3686_NONCE_SIZE) in ctr3686_aes_nx_set_key()
64 in_key + key_len - CTR_RFC3686_NONCE_SIZE, in ctr3686_aes_nx_set_key()
65 CTR_RFC3686_NONCE_SIZE); in ctr3686_aes_nx_set_key()
67 key_len -= CTR_RFC3686_NONCE_SIZE; in ctr3686_aes_nx_set_key()
121 memcpy(iv, nx_ctx->priv.ctr.nonce, CTR_RFC3686_NONCE_SIZE); in ctr3686_aes_nx_crypt()
122 memcpy(iv + CTR_RFC3686_NONCE_SIZE, req->iv, CTR_RFC3686_IV_SIZE); in ctr3686_aes_nx_crypt()
138 .min_keysize = AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
139 .max_keysize = AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
Dnx.h114 u8 nonce[CTR_RFC3686_NONCE_SIZE];
/linux-6.1.9/crypto/
Dctr.c20 u8 nonce[CTR_RFC3686_NONCE_SIZE];
176 if (keylen < CTR_RFC3686_NONCE_SIZE) in crypto_rfc3686_setkey()
179 memcpy(ctx->nonce, key + (keylen - CTR_RFC3686_NONCE_SIZE), in crypto_rfc3686_setkey()
180 CTR_RFC3686_NONCE_SIZE); in crypto_rfc3686_setkey()
182 keylen -= CTR_RFC3686_NONCE_SIZE; in crypto_rfc3686_setkey()
202 memcpy(iv, ctx->nonce, CTR_RFC3686_NONCE_SIZE); in crypto_rfc3686_crypt()
203 memcpy(iv + CTR_RFC3686_NONCE_SIZE, req->iv, CTR_RFC3686_IV_SIZE); in crypto_rfc3686_crypt()
206 *(__be32 *)(iv + CTR_RFC3686_NONCE_SIZE + CTR_RFC3686_IV_SIZE) = in crypto_rfc3686_crypt()
308 CTR_RFC3686_NONCE_SIZE; in crypto_rfc3686_create()
310 CTR_RFC3686_NONCE_SIZE; in crypto_rfc3686_create()
/linux-6.1.9/drivers/crypto/ccp/
Dccp-crypto-aes.c148 if (key_len < CTR_RFC3686_NONCE_SIZE) in ccp_aes_rfc3686_setkey()
151 key_len -= CTR_RFC3686_NONCE_SIZE; in ccp_aes_rfc3686_setkey()
152 memcpy(ctx->u.aes.nonce, key + key_len, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_setkey()
166 memcpy(iv, ctx->u.aes.nonce, CTR_RFC3686_NONCE_SIZE); in ccp_aes_rfc3686_crypt()
168 iv += CTR_RFC3686_NONCE_SIZE; in ccp_aes_rfc3686_crypt()
225 .min_keysize = AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
226 .max_keysize = AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
Dccp-crypto.h103 u8 nonce[CTR_RFC3686_NONCE_SIZE];
/linux-6.1.9/drivers/crypto/cavium/nitrox/
Dnitrox_skcipher.c370 if (keylen < CTR_RFC3686_NONCE_SIZE) in nitrox_aes_ctr_rfc3686_setkey()
375 memcpy(fctx->crypto.iv, key + (keylen - CTR_RFC3686_NONCE_SIZE), in nitrox_aes_ctr_rfc3686_setkey()
376 CTR_RFC3686_NONCE_SIZE); in nitrox_aes_ctr_rfc3686_setkey()
378 keylen -= CTR_RFC3686_NONCE_SIZE; in nitrox_aes_ctr_rfc3686_setkey()
473 .min_keysize = AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
474 .max_keysize = AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
/linux-6.1.9/include/crypto/
Dctr.h16 #define CTR_RFC3686_NONCE_SIZE 4 macro
/linux-6.1.9/drivers/crypto/caam/
Dcaamalg_desc.c231 enckeylen -= CTR_RFC3686_NONCE_SIZE; in init_sh_desc_key_aead()
255 append_load_as_imm(desc, nonce, CTR_RFC3686_NONCE_SIZE, in init_sh_desc_key_aead()
262 (CTR_RFC3686_NONCE_SIZE << MOVE_LEN_SHIFT)); in init_sh_desc_key_aead()
1400 append_load_as_imm(desc, nonce, CTR_RFC3686_NONCE_SIZE, in cnstr_shdsc_skcipher_encap()
1405 (CTR_RFC3686_NONCE_SIZE << MOVE_LEN_SHIFT)); in cnstr_shdsc_skcipher_encap()
1475 append_load_as_imm(desc, nonce, CTR_RFC3686_NONCE_SIZE, in cnstr_shdsc_skcipher_decap()
1480 (CTR_RFC3686_NONCE_SIZE << MOVE_LEN_SHIFT)); in cnstr_shdsc_skcipher_decap()
Dcaamalg.c69 CTR_RFC3686_NONCE_SIZE + \
218 ctx1_iv_off = 16 + CTR_RFC3686_NONCE_SIZE; in aead_set_sh_desc()
220 ctx->cdata.keylen - CTR_RFC3686_NONCE_SIZE); in aead_set_sh_desc()
788 ctx1_iv_off = 16 + CTR_RFC3686_NONCE_SIZE; in rfc3686_skcipher_setkey()
789 keylen -= CTR_RFC3686_NONCE_SIZE; in rfc3686_skcipher_setkey()
1209 ivoffset = 16 + CTR_RFC3686_NONCE_SIZE; in init_authenc_job()
1944 CTR_RFC3686_NONCE_SIZE,
1946 CTR_RFC3686_NONCE_SIZE,
Dcaamalg_qi.c111 ctx1_iv_off = 16 + CTR_RFC3686_NONCE_SIZE; in aead_set_sh_desc()
113 ctx->cdata.keylen - CTR_RFC3686_NONCE_SIZE); in aead_set_sh_desc()
687 ctx1_iv_off = 16 + CTR_RFC3686_NONCE_SIZE; in rfc3686_skcipher_setkey()
688 keylen -= CTR_RFC3686_NONCE_SIZE; in rfc3686_skcipher_setkey()
1543 CTR_RFC3686_NONCE_SIZE,
1545 CTR_RFC3686_NONCE_SIZE,
Dcaamalg_qi2.c28 #define CAAM_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE + \
204 ctx1_iv_off = 16 + CTR_RFC3686_NONCE_SIZE; in aead_set_sh_desc()
206 ctx->cdata.keylen - CTR_RFC3686_NONCE_SIZE); in aead_set_sh_desc()
1006 ctx1_iv_off = 16 + CTR_RFC3686_NONCE_SIZE; in rfc3686_skcipher_setkey()
1007 keylen -= CTR_RFC3686_NONCE_SIZE; in rfc3686_skcipher_setkey()
1747 CTR_RFC3686_NONCE_SIZE,
1749 CTR_RFC3686_NONCE_SIZE,
/linux-6.1.9/drivers/crypto/
Dixp4xx_crypto.c186 u8 nonce[CTR_RFC3686_NONCE_SIZE];
942 if (key_len < CTR_RFC3686_NONCE_SIZE) in ablk_rfc3686_setkey()
945 memcpy(ctx->nonce, key + (key_len - CTR_RFC3686_NONCE_SIZE), in ablk_rfc3686_setkey()
946 CTR_RFC3686_NONCE_SIZE); in ablk_rfc3686_setkey()
948 key_len -= CTR_RFC3686_NONCE_SIZE; in ablk_rfc3686_setkey()
1073 memcpy(iv, ctx->nonce, CTR_RFC3686_NONCE_SIZE); in ablk_rfc3686_crypt()
1074 memcpy(iv + CTR_RFC3686_NONCE_SIZE, info, CTR_RFC3686_IV_SIZE); in ablk_rfc3686_crypt()
1077 *(__be32 *)(iv + CTR_RFC3686_NONCE_SIZE + CTR_RFC3686_IV_SIZE) = in ablk_rfc3686_crypt()
Ds5p-sss.c257 u8 nonce[CTR_RFC3686_NONCE_SIZE];
/linux-6.1.9/drivers/crypto/chelsio/
Dchcr_algo.c996 if (keylen < CTR_RFC3686_NONCE_SIZE) in chcr_aes_rfc3686_setkey()
998 memcpy(ablkctx->nonce, key + (keylen - CTR_RFC3686_NONCE_SIZE), in chcr_aes_rfc3686_setkey()
999 CTR_RFC3686_NONCE_SIZE); in chcr_aes_rfc3686_setkey()
1001 keylen -= CTR_RFC3686_NONCE_SIZE; in chcr_aes_rfc3686_setkey()
1107 *(__be32 *)(reqctx->iv + CTR_RFC3686_NONCE_SIZE + in chcr_update_cipher_iv()
1313 memcpy(reqctx->iv, ablkctx->nonce, CTR_RFC3686_NONCE_SIZE); in process_cipher()
1314 memcpy(reqctx->iv + CTR_RFC3686_NONCE_SIZE, req->iv, in process_cipher()
1318 *(__be32 *)(reqctx->iv + CTR_RFC3686_NONCE_SIZE + in process_cipher()
2550 memcpy(ivptr, aeadctx->nonce, CTR_RFC3686_NONCE_SIZE); in create_authenc_wr()
2551 memcpy(ivptr + CTR_RFC3686_NONCE_SIZE, req->iv, in create_authenc_wr()
[all …]
/linux-6.1.9/drivers/crypto/inside-secure/
Dsafexcel_cipher.c418 if (unlikely(keys.enckeylen < CTR_RFC3686_NONCE_SIZE)) in safexcel_aead_setkey()
422 CTR_RFC3686_NONCE_SIZE); in safexcel_aead_setkey()
424 keys.enckeylen -= CTR_RFC3686_NONCE_SIZE; in safexcel_aead_setkey()
1440 ctx->nonce = *(u32 *)(key + len - CTR_RFC3686_NONCE_SIZE); in safexcel_skcipher_aesctr_setkey()
1442 keylen = len - CTR_RFC3686_NONCE_SIZE; in safexcel_skcipher_aesctr_setkey()
1484 .min_keysize = AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
1485 .max_keysize = AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
3270 ctx->nonce = *(u32 *)(key + len - CTR_RFC3686_NONCE_SIZE); in safexcel_skcipher_sm4ctr_setkey()
3272 len -= CTR_RFC3686_NONCE_SIZE; in safexcel_skcipher_sm4ctr_setkey()
3296 .min_keysize = SM4_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
[all …]
/linux-6.1.9/drivers/crypto/ccree/
Dcc_aead.c27 #define MAX_NONCE_SIZE CTR_RFC3686_NONCE_SIZE
571 (AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE)) in cc_aead_setkey()
577 CTR_RFC3686_NONCE_SIZE, CTR_RFC3686_NONCE_SIZE); in cc_aead_setkey()
579 ctx->enc_keylen -= CTR_RFC3686_NONCE_SIZE; in cc_aead_setkey()
1933 CTR_RFC3686_NONCE_SIZE); in cc_proc_aead()
1934 memcpy(areq_ctx->ctr_iv + CTR_RFC3686_NONCE_SIZE, req->iv, in cc_proc_aead()
1937 *(__be32 *)(areq_ctx->ctr_iv + CTR_RFC3686_NONCE_SIZE + in cc_proc_aead()
/linux-6.1.9/drivers/crypto/amcc/
Dcrypto4xx_alg.c211 rc = crypto4xx_setkey_aes(cipher, key, keylen - CTR_RFC3686_NONCE_SIZE, in crypto4xx_setkey_rfc3686()
217 CTR_RFC3686_NONCE_SIZE]); in crypto4xx_setkey_rfc3686()
Dcrypto4xx_core.c1266 .min_keysize = AES_MIN_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,
1267 .max_keysize = AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE,