Home
last modified time | relevance | path

Searched refs:GHASH_BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/crypto/
Dghash-generic.c39 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
47 BUILD_BUG_ON(sizeof(k) != GHASH_BLOCK_SIZE); in ghash_setkey()
48 memcpy(&k, key, GHASH_BLOCK_SIZE); /* avoid violating alignment rules */ in ghash_setkey()
50 memzero_explicit(&k, GHASH_BLOCK_SIZE); in ghash_setkey()
67 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
79 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update()
80 crypto_xor(dst, src, GHASH_BLOCK_SIZE); in ghash_update()
82 src += GHASH_BLOCK_SIZE; in ghash_update()
83 srclen -= GHASH_BLOCK_SIZE; in ghash_update()
87 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
[all …]
/linux-4.19.296/include/crypto/
Dghash.h12 #define GHASH_BLOCK_SIZE 16 macro
20 u8 buffer[GHASH_BLOCK_SIZE];