Home
last modified time | relevance | path

Searched refs:nonce (Results 1 – 5 of 5) sorted by relevance

/crypto/
Dvmac.c71 } nonce; member
501 memcpy(&dctx->nonce.bytes[dctx->nonce_size], p, n); in vmac_update()
578 if (dctx->nonce.bytes[0] & 0x80) in vmac_final()
586 index = dctx->nonce.bytes[VMAC_NONCEBYTES - 1] & 1; in vmac_final()
587 dctx->nonce.bytes[VMAC_NONCEBYTES - 1] &= ~1; in vmac_final()
588 crypto_cipher_encrypt_one(tctx->cipher, dctx->nonce.bytes, in vmac_final()
589 dctx->nonce.bytes); in vmac_final()
590 pad = be64_to_cpu(dctx->nonce.pads[index]); in vmac_final()
Dctr.c20 u8 nonce[CTR_RFC3686_NONCE_SIZE]; member
179 memcpy(ctx->nonce, key + (keylen - CTR_RFC3686_NONCE_SIZE), in crypto_rfc3686_setkey()
202 memcpy(iv, ctx->nonce, CTR_RFC3686_NONCE_SIZE); in crypto_rfc3686_crypt()
Dgcm.c34 u8 nonce[4]; member
50 u8 nonce[4]; member
699 memcpy(ctx->nonce, key + keylen, 4); in crypto_rfc4106_setkey()
733 memcpy(iv, ctx->nonce, 4); in crypto_rfc4106_crypt()
907 memcpy(ctx->nonce, key + keylen, 4); in crypto_rfc4543_setkey()
943 memcpy(iv, ctx->nonce, 4); in crypto_rfc4543_crypt()
Dccm.c31 u8 nonce[3]; member
578 memcpy(ctx->nonce, key + keylen, 3); in crypto_rfc4309_setkey()
617 memcpy(iv + 1, ctx->nonce, 3); in crypto_rfc4309_crypt()
DKconfig708 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length