Searched refs:POLYVAL_BLOCK_SIZE (Results 1 – 7 of 7) sorted by relevance
| /linux/lib/crypto/tests/ |
| H A D | polyval_kunit.c | 21 u8 out[POLYVAL_BLOCK_SIZE]) in polyval_withtestkey() argument 29 #define HASH_SIZE POLYVAL_BLOCK_SIZE 41 static const u8 raw_key[POLYVAL_BLOCK_SIZE] = in test_polyval_rfc8452_testvec() 51 static const u8 expected_hash[POLYVAL_BLOCK_SIZE] = in test_polyval_rfc8452_testvec() 54 u8 hash[POLYVAL_BLOCK_SIZE]; in test_polyval_rfc8452_testvec() 71 u8 hash[POLYVAL_BLOCK_SIZE]; in test_polyval_allones_key_and_message() 99 u8 hash1[POLYVAL_BLOCK_SIZE]; in check_key_consistency() 100 u8 hash2[POLYVAL_BLOCK_SIZE]; in check_key_consistency() 117 u8 raw_key[POLYVAL_BLOCK_SIZE]; in test_polyval_with_guarded_key() 144 u8 raw_key[POLYVAL_BLOCK_SIZE]; in test_polyval_with_minimally_aligned_key() [all …]
|
| /linux/include/crypto/ |
| H A D | polyval.h | 14 #define POLYVAL_BLOCK_SIZE 16 macro 28 u8 bytes[POLYVAL_BLOCK_SIZE]; 89 const u8 raw_key[POLYVAL_BLOCK_SIZE]); 93 const u8 raw_key[POLYVAL_BLOCK_SIZE]) in polyval_preparekey() argument 96 memcpy(key->h.bytes, raw_key, POLYVAL_BLOCK_SIZE); in polyval_preparekey() 168 void polyval_final(struct polyval_ctx *ctx, u8 out[POLYVAL_BLOCK_SIZE]); 181 u8 out[POLYVAL_BLOCK_SIZE]) in polyval() argument
|
| /linux/lib/crypto/ |
| H A D | polyval.c | 216 data += POLYVAL_BLOCK_SIZE; in polyval_blocks_generic() 224 const u8 raw_key[POLYVAL_BLOCK_SIZE]) in polyval_preparekey() argument 261 size_t n = min(len, POLYVAL_BLOCK_SIZE - ctx->partial); in polyval_update() 266 if (ctx->partial < POLYVAL_BLOCK_SIZE) in polyval_update() 270 if (len >= POLYVAL_BLOCK_SIZE) { in polyval_update() 271 size_t nblocks = len / POLYVAL_BLOCK_SIZE; in polyval_update() 274 data += len & ~(POLYVAL_BLOCK_SIZE - 1); in polyval_update() 275 len &= POLYVAL_BLOCK_SIZE - 1; in polyval_update() 283 void polyval_final(struct polyval_ctx *ctx, u8 out[POLYVAL_BLOCK_SIZE]) in polyval_final() argument 287 memcpy(out, &ctx->acc, POLYVAL_BLOCK_SIZE); in polyval_final()
|
| /linux/lib/crypto/x86/ |
| H A D | polyval.h | 21 const u8 raw_key[POLYVAL_BLOCK_SIZE]) in polyval_preparekey_arch() argument 24 memcpy(&key->h_powers[NUM_H_POWERS - 1], raw_key, POLYVAL_BLOCK_SIZE); in polyval_preparekey_arch() 63 4096 / POLYVAL_BLOCK_SIZE); in polyval_blocks_arch() 68 data += n * POLYVAL_BLOCK_SIZE; in polyval_blocks_arch()
|
| /linux/lib/crypto/arm64/ |
| H A D | polyval.h | 21 const u8 raw_key[POLYVAL_BLOCK_SIZE]) in polyval_preparekey_arch() argument 24 memcpy(&key->h_powers[NUM_H_POWERS - 1], raw_key, POLYVAL_BLOCK_SIZE); in polyval_preparekey_arch() 62 4096 / POLYVAL_BLOCK_SIZE); in polyval_blocks_arch() 66 data += n * POLYVAL_BLOCK_SIZE; in polyval_blocks_arch()
|
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 54 POLYVAL_BLOCK_SIZE = 16 variable 88 return Polyval(rand_bytes(POLYVAL_BLOCK_SIZE)) 200 key = b'\xff' * POLYVAL_BLOCK_SIZE
|
| /linux/crypto/ |
| H A D | hctr2.c | 89 static_assert(sizeof(tweak_length_block) == POLYVAL_BLOCK_SIZE); in hctr2_hash_tweaklens() 126 static_assert(sizeof(hbar) == POLYVAL_BLOCK_SIZE); in hctr2_setkey() 140 bool has_remainder = req->cryptlen % POLYVAL_BLOCK_SIZE; in hctr2_hash_tweak() 148 static_assert(TWEAK_SIZE % POLYVAL_BLOCK_SIZE == 0); in hctr2_hash_tweak()
|