Home
last modified time | relevance | path

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

/linux/crypto/
H A Dchacha20poly1305.c22 unsigned int saltlen; member
28 unsigned int saltlen; member
29 u8 salt[] __counted_by(saltlen);
76 memcpy(iv + sizeof(leicb), ctx->salt, ctx->saltlen); in chacha_iv()
77 memcpy(iv + sizeof(leicb) + ctx->saltlen, req->iv, in chacha_iv()
78 CHACHA_IV_SIZE - sizeof(leicb) - ctx->saltlen); in chacha_iv()
308 if (keylen != ctx->saltlen + CHACHA_KEY_SIZE) in chachapoly_setkey()
311 keylen -= ctx->saltlen; in chachapoly_setkey()
312 memcpy(ctx->salt, key + keylen, ctx->saltlen); in chachapoly_setkey()
342 ctx->saltlen = ictx->saltlen; in chachapoly_init()
[all …]
/linux/drivers/crypto/caam/
H A Dcaamalg.c579 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local
581 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()
586 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
H A Dcaamalg_qi2.c640 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()