Home
last modified time | relevance | path

Searched refs:saltlen (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/crypto/
Dchacha20poly1305.c22 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()
92 CHACHA_IV_SIZE - sizeof(leicb) - ctx->saltlen); 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()
[all …]
/linux-6.12.1/drivers/crypto/caam/
Dcaamalg.c573 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()
Dcaamalg_qi2.c639 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local
641 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()
646 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()