Home
last modified time | relevance | path

Searched refs:SHA512_BLOCK_SIZE (Results 1 – 25 of 31) sorted by relevance

12

/linux/arch/sparc/crypto/
H A Dsha512_glue.c37 done = SHA512_BLOCK_SIZE - partial; in __sha512_sparc64_update()
41 if (len - done >= SHA512_BLOCK_SIZE) { in __sha512_sparc64_update()
42 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update()
45 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update()
55 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_update()
58 if (partial + len < SHA512_BLOCK_SIZE) { in sha512_sparc64_update()
74 static const u8 padding[SHA512_BLOCK_SIZE] = { 0x80, }; in sha512_sparc64_final()
81 index = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_final()
82 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final()
126 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/include/crypto/
H A Dsha512_base.h62 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update()
68 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) { in sha512_base_do_update()
72 int p = SHA512_BLOCK_SIZE - partial; in sha512_base_do_update()
81 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update()
82 len %= SHA512_BLOCK_SIZE; in sha512_base_do_update()
86 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update()
99 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(__be64[2]); in sha512_base_do_finalize()
102 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize()
106 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial); in sha512_base_do_finalize()
H A Dsha2.h21 #define SHA512_BLOCK_SIZE 128 macro
76 u8 buf[SHA512_BLOCK_SIZE];
/linux/drivers/crypto/nx/
H A Dnx-sha512.c21 u8 buf[SHA512_BLOCK_SIZE];
73 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update()
81 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update()
82 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update()
133 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update()
172 } while (leftover >= SHA512_BLOCK_SIZE); in nx_sha512_update()
205 if (sctx->count[0] >= SHA512_BLOCK_SIZE) { in nx_sha512_final()
223 len = sctx->count[0] & (SHA512_BLOCK_SIZE - 1); in nx_sha512_final()
227 if (len != (sctx->count[0] & (SHA512_BLOCK_SIZE - 1))) { in nx_sha512_final()
288 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/arch/mips/cavium-octeon/crypto/
H A Docteon-sha512.c86 index = sctx->count[0] % SHA512_BLOCK_SIZE; in __octeon_sha512_update()
92 part_len = SHA512_BLOCK_SIZE - index; in __octeon_sha512_update()
99 for (i = part_len; i + SHA512_BLOCK_SIZE <= len; in __octeon_sha512_update()
100 i += SHA512_BLOCK_SIZE) in __octeon_sha512_update()
124 if ((sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in octeon_sha512_update()
201 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/arch/arm/crypto/
H A Dsha512-neon-glue.c32 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_neon_update()
89 .cra_blocksize = SHA512_BLOCK_SIZE,
H A Dsha512-glue.c61 .cra_blocksize = SHA512_BLOCK_SIZE,
75 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/arch/x86/crypto/
H A Dsha512_ssse3_glue.c51 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_update()
111 .cra_blocksize = SHA512_BLOCK_SIZE,
187 .cra_blocksize = SHA512_BLOCK_SIZE,
253 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/arch/arm64/crypto/
H A Dsha512-ce-glue.c43 src += (blocks - rem) * SHA512_BLOCK_SIZE; in sha512_ce_transform()
94 .base.cra_blocksize = SHA512_BLOCK_SIZE,
106 .base.cra_blocksize = SHA512_BLOCK_SIZE,
H A Dsha512-glue.c63 .base.cra_blocksize = SHA512_BLOCK_SIZE,
/linux/drivers/crypto/aspeed/
H A Daspeed-hace.h166 u8 ipad[SHA512_BLOCK_SIZE];
167 u8 opad[SHA512_BLOCK_SIZE];
194 u8 buffer[SHA512_BLOCK_SIZE * 2];
H A Daspeed-hace-hash.c719 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sham_init()
1107 .cra_blocksize = SHA512_BLOCK_SIZE,
1176 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/crypto/
H A Dsha512_generic.c153 src += SHA512_BLOCK_SIZE; in sha512_generic_block_fn()
189 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/drivers/crypto/ccree/
H A Dcc_hash.h19 #define CC_MAX_HASH_BLCK_SIZE SHA512_BLOCK_SIZE
/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-hcu-core.c47 u8 key[SHA512_BLOCK_SIZE];
86 u8 buffer[2 * SHA512_BLOCK_SIZE];
598 rctx->blk_sz = SHA512_BLOCK_SIZE; in kmb_ocs_hcu_init()
1108 .cra_blocksize = SHA512_BLOCK_SIZE,
1134 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/arch/s390/crypto/
H A Dhmac_s390.c47 #define MAX_BLOCK_SIZE SHA512_BLOCK_SIZE
90 case SHA512_BLOCK_SIZE: in kmac_sha2_set_imbl()
H A Dsha512_s390.c79 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/arch/riscv/crypto/
H A Dsha512-riscv64-glue.c86 .cra_blocksize = SHA512_BLOCK_SIZE,
/linux/drivers/crypto/
H A Dsa2ul.h314 u8 authkey[SHA512_BLOCK_SIZE];
H A Datmel-sha.c108 u8 buffer[SHA_BUFFER_LEN + SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
459 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_init()
1309 .halg.base.cra_blocksize = SHA512_BLOCK_SIZE,
1611 u8 buffer[SHA512_BLOCK_SIZE];
1663 u32 ipad[SHA512_BLOCK_SIZE / sizeof(u32)];
1664 u32 opad[SHA512_BLOCK_SIZE / sizeof(u32)];
1716 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_hmac_setup()
2093 .halg.base.cra_blocksize = SHA512_BLOCK_SIZE,
/linux/fs/verity/
H A Dhash_algs.c23 .block_size = SHA512_BLOCK_SIZE,
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c36 #define STARFIVE_HASH_BUFLEN SHA512_BLOCK_SIZE
746 .cra_blocksize = SHA512_BLOCK_SIZE,
775 .cra_blocksize = SHA512_BLOCK_SIZE,
H A Djh7110-cryp.h30 #define MAX_KEY_SIZE SHA512_BLOCK_SIZE
/linux/drivers/crypto/ccp/
H A Dccp-crypto.h186 #define MAX_SHA_BLOCK_SIZE SHA512_BLOCK_SIZE
/linux/drivers/crypto/bcm/
H A Dcipher.h50 #define MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE

12