Home
last modified time | relevance | path

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

/Linux-v5.4/crypto/
Dchacha20poly1305.c24 unsigned int saltlen; member
31 unsigned int saltlen; member
92 memcpy(iv + sizeof(leicb), ctx->salt, ctx->saltlen); in chacha_iv()
93 memcpy(iv + sizeof(leicb) + ctx->saltlen, req->iv, in chacha_iv()
94 CHACHA_IV_SIZE - sizeof(leicb) - ctx->saltlen); in chacha_iv()
482 if (keylen != ctx->saltlen + CHACHA_KEY_SIZE) in chachapoly_setkey()
485 keylen -= ctx->saltlen; in chachapoly_setkey()
486 memcpy(ctx->salt, key + keylen, ctx->saltlen); in chachapoly_setkey()
528 ctx->saltlen = ictx->saltlen; in chachapoly_init()
610 ctx->saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_create()
[all …]
/Linux-v5.4/drivers/crypto/caam/
Dcaamalg.c549 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local
551 if (keylen != CHACHA_KEY_SIZE + saltlen) { in chachapoly_setkey()
557 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
Dcaamalg_qi2.c635 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local
637 if (keylen != CHACHA_KEY_SIZE + saltlen) { in chachapoly_setkey()
643 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()