Searched refs:saltlen (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/crypto/ |
H A D | chacha20poly1305.c | 22 unsigned int saltlen; member 29 unsigned int saltlen; member 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...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | chacha20poly1305.c | 22 unsigned int saltlen; member 29 unsigned int saltlen; member 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...] |
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | caamalg.c | 564 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local 566 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey() 571 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
|
H A D | caamalg_qi2.c | 634 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local 636 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey() 641 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
|
/kernel/linux/linux-6.6/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 | 639 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()
|
Completed in 24 milliseconds