Home
last modified time | relevance | path

Searched refs:SHA256_BLOCK_SIZE (Results 1 – 25 of 39) sorted by relevance

12

/linux/net/mptcp/
H A Dcrypto.c46 u8 input[SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE]; in mptcp_crypto_hmac_sha()
58 memset(input, 0x36, SHA256_BLOCK_SIZE); in mptcp_crypto_hmac_sha()
64 memcpy(&input[SHA256_BLOCK_SIZE], msg, len); in mptcp_crypto_hmac_sha()
69 sha256(input, SHA256_BLOCK_SIZE + len, &input[SHA256_BLOCK_SIZE]); in mptcp_crypto_hmac_sha()
72 memset(input, 0x5C, SHA256_BLOCK_SIZE); in mptcp_crypto_hmac_sha()
78 sha256(input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE, hmac); in mptcp_crypto_hmac_sha()
/linux/drivers/crypto/inside-secure/eip93/
H A Deip93-hash.h20 u8 ipad[SHA256_BLOCK_SIZE] __aligned(sizeof(u32));
49 u8 data[SHA256_BLOCK_SIZE] __aligned(sizeof(u32));
57 u8 data[SHA256_BLOCK_SIZE] __aligned(sizeof(u32));
68 u8 data[SHA256_BLOCK_SIZE] __aligned(sizeof(u32));
H A Deip93-common.c708 u8 ipad[SHA256_BLOCK_SIZE], opad[SHA256_BLOCK_SIZE]; in eip93_hmac_setkey()
749 /* Hash the key if > SHA256_BLOCK_SIZE */ in eip93_hmac_setkey()
750 if (keylen > SHA256_BLOCK_SIZE) { in eip93_hmac_setkey()
764 memset(ipad + keylen, 0, SHA256_BLOCK_SIZE - keylen); in eip93_hmac_setkey()
765 memcpy(opad, ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey()
768 for (i = 0; i < SHA256_BLOCK_SIZE; i++) { in eip93_hmac_setkey()
774 memcpy(dest_ipad, ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey()
777 sg_init_one(&sg[0], ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey()
778 ahash_request_set_crypt(req, sg, dest_ipad, SHA256_BLOCK_SIZE); in eip93_hmac_setkey()
[all...]
H A Deip93-hash.c31 SHA256_BLOCK_SIZE, DMA_TO_DEVICE); in eip93_hash_free_data_blocks()
301 memcpy(rctx->data, ctx->ipad, SHA256_BLOCK_SIZE); in eip93_hash_init()
303 rctx->data_used = SHA256_BLOCK_SIZE; in eip93_hash_init()
304 rctx->len += SHA256_BLOCK_SIZE; in eip93_hash_init()
328 max_read = SHA256_BLOCK_SIZE - offset; in __eip93_hash_update()
330 /* Consume req in block of SHA256_BLOCK_SIZE. in __eip93_hash_update()
332 * and then reset to SHA256_BLOCK_SIZE. in __eip93_hash_update()
352 max_read = SHA256_BLOCK_SIZE; in __eip93_hash_update()
376 SHA256_BLOCK_SIZE, wait_req); in __eip93_hash_update()
744 .cra_blocksize = SHA256_BLOCK_SIZE,
[all...]
/linux/lib/crypto/powerpc/
H A Dsha256.h49 MAX_BYTES / SHA256_BLOCK_SIZE); in sha256_blocks()
55 data += unit * SHA256_BLOCK_SIZE; in sha256_blocks()
/linux/drivers/crypto/
H A Dpadlock-sha.c234 .cra_blocksize = SHA256_BLOCK_SIZE,
266 int blocks = len / SHA256_BLOCK_SIZE; in padlock_sha256_update_nano()
268 len -= blocks * SHA256_BLOCK_SIZE; in padlock_sha256_update_nano()
269 state->count += blocks * SHA256_BLOCK_SIZE; in padlock_sha256_update_nano()
314 .cra_blocksize = SHA256_BLOCK_SIZE,
H A Domap-sham.c414 d = SHA256_BLOCK_SIZE; in get_block_size()
972 bs = SHA256_BLOCK_SIZE; in omap_sham_init()
1553 .cra_blocksize = SHA256_BLOCK_SIZE,
1600 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/nx/
H A Dnx-sha256.c99 to_process = total & ~(SHA256_BLOCK_SIZE - 1); in nx_sha256_update()
132 } while (leftover >= SHA256_BLOCK_SIZE); in nx_sha256_update()
256 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/crypto/
H A Dsha256.c35 partial = ctx.bytecount % SHA256_BLOCK_SIZE; in __crypto_sha256_export()
276 .base.cra_blocksize = SHA256_BLOCK_SIZE,
310 .base.cra_blocksize = SHA256_BLOCK_SIZE,
/linux/lib/crypto/s390/
H A Dsha256.h17 nblocks * SHA256_BLOCK_SIZE); in sha256_blocks()
/linux/include/crypto/
H A Dsha2.h15 #define SHA256_BLOCK_SIZE 64 macro
108 u8 buf[SHA256_BLOCK_SIZE];
130 u8 buf[SHA256_BLOCK_SIZE] __aligned(__alignof__(__be64));
/linux/drivers/crypto/qce/
H A Dsha.h16 #define QCE_SHA_MAX_BLOCKSIZE SHA256_BLOCK_SIZE
H A Dsha.c428 .blocksize = SHA256_BLOCK_SIZE,
446 .blocksize = SHA256_BLOCK_SIZE,
/linux/lib/crypto/mips/
H A Dsha256.h50 data += SHA256_BLOCK_SIZE; in sha256_blocks()
/linux/lib/crypto/arm64/
H A Dsha256.h34 data += (nblocks - rem) * SHA256_BLOCK_SIZE; in sha256_blocks()
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c1247 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_sha256_init()
1283 .cra_blocksize = SHA256_BLOCK_SIZE,
1304 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_sha224_init()
1367 req->len = SHA256_BLOCK_SIZE; in safexcel_hmac_sha224_init()
1368 req->processed = SHA256_BLOCK_SIZE; in safexcel_hmac_sha224_init()
1374 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_hmac_sha224_init()
1439 req->len = SHA256_BLOCK_SIZE; in safexcel_hmac_sha256_init()
1440 req->processed = SHA256_BLOCK_SIZE; in safexcel_hmac_sha256_init()
1446 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_hmac_sha256_init()
1484 .cra_blocksize = SHA256_BLOCK_SIZE,
[all...]
/linux/drivers/crypto/axis/
H A Dartpec6_crypto.c291 char partial_buffer[SHA256_BLOCK_SIZE];
292 char partial_buffer_out[SHA256_BLOCK_SIZE];
293 char key_buffer[SHA256_BLOCK_SIZE];
294 char pad_buffer[SHA256_BLOCK_SIZE + 32];
305 char partial_buffer[SHA256_BLOCK_SIZE];
314 char hmac_key[SHA256_BLOCK_SIZE];
2663 .cra_blocksize = SHA256_BLOCK_SIZE,
2687 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c568 rctx->block_size = SHA256_BLOCK_SIZE; in aspeed_sham_init()
673 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/arch/s390/crypto/
H A Dphmac_s390.c117 #define PHMAC_SHA256_PK_SIZE (SHA256_BLOCK_SIZE + 32)
382 case SHA256_BLOCK_SIZE: in kmac_sha2_set_imbl()
H A Dhmac_s390.c90 case SHA256_BLOCK_SIZE: in kmac_sha2_set_imbl()
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c632 .cra_blocksize = SHA256_BLOCK_SIZE,
661 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c395 u8 pad[SHA256_BLOCK_SIZE]; in tpm2_hmac_init()
412 u8 pad[SHA256_BLOCK_SIZE]; in tpm2_hmac_final()
/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c428 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/tegra/
H A Dtegra-se-hash.c814 .cra_blocksize = SHA256_BLOCK_SIZE,
1018 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c391 .block_size = SHA256_BLOCK_SIZE,

12