Searched refs:saltlen (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/crypto/ |
| H A D | chacha20poly1305.c | 22 unsigned int saltlen; member 29 unsigned int saltlen; member 30 u8 salt[] __counted_by(saltlen); 90 memcpy(iv + sizeof(leicb), ctx->salt, ctx->saltlen); in chacha_iv() 91 memcpy(iv + sizeof(leicb) + ctx->saltlen, req->iv, in chacha_iv() 479 if (keylen != ctx->saltlen + CHACHA_KEY_SIZE) in chachapoly_setkey() 482 keylen -= ctx->saltlen; in chachapoly_setkey() 483 memcpy(ctx->salt, key + keylen, ctx->saltlen); in chachapoly_setkey() 521 ctx->saltlen = ictx->saltlen; in chachapoly_init() 576 ctx->saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_create() [all …]
|
| H A D | hkdf.c | 45 unsigned int ikmlen, const u8 *salt, unsigned int saltlen, in hkdf_extract() argument 50 err = crypto_shash_setkey(hmac_tfm, salt, saltlen); in hkdf_extract()
|
| /linux-6.15/include/crypto/ |
| H A D | hkdf.h | 15 unsigned int ikmlen, const u8 *salt, unsigned int saltlen,
|
| /linux-6.15/drivers/crypto/caam/ |
| H A D | caamalg.c | 573 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local 575 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey() 580 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
|
| H A D | caamalg_qi2.c | 640 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local 642 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey() 647 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
|