Searched refs:saltlen (Results 1 – 3 of 3) sorted by relevance
22 unsigned int saltlen; member29 unsigned int saltlen; member30 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 …]
573 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local575 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()580 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()
639 unsigned int saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_setkey() local641 if (keylen != CHACHA_KEY_SIZE + saltlen) in chachapoly_setkey()646 ctx->cdata.keylen = keylen - saltlen; in chachapoly_setkey()