Home
last modified time | relevance | path

Searched refs:SHA1_BLOCK_SIZE (Results 1 – 13 of 13) sorted by relevance

/linux/lib/crypto/
H A Dsha1.c151 data += SHA1_BLOCK_SIZE; in sha1_blocks_generic()
172 size_t partial = ctx->bytecount % SHA1_BLOCK_SIZE; in sha1_update()
176 if (partial + len >= SHA1_BLOCK_SIZE) { in sha1_update()
180 size_t l = SHA1_BLOCK_SIZE - partial; in sha1_update()
189 nblocks = len / SHA1_BLOCK_SIZE; in sha1_update()
190 len %= SHA1_BLOCK_SIZE; in sha1_update()
194 data += nblocks * SHA1_BLOCK_SIZE; in sha1_update()
206 size_t partial = ctx->bytecount % SHA1_BLOCK_SIZE; in __sha1_final()
209 if (partial > SHA1_BLOCK_SIZE - 8) { in __sha1_final()
210 memset(&ctx->buf[partial], 0, SHA1_BLOCK_SIZE - partial); in __sha1_final()
[all …]
/linux/tools/perf/util/
H A Dsha1.c14 #define SHA1_BLOCK_SIZE 64 macro
74 data += SHA1_BLOCK_SIZE; in sha1_blocks()
83 u8 final_data[2 * SHA1_BLOCK_SIZE] = { 0 }; in sha1()
84 size_t final_len = len % SHA1_BLOCK_SIZE; in sha1()
86 sha1_blocks(h, data, len / SHA1_BLOCK_SIZE); in sha1()
90 final_len = round_up(final_len + 9, SHA1_BLOCK_SIZE); in sha1()
93 sha1_blocks(h, final_data, final_len / SHA1_BLOCK_SIZE); in sha1()
/linux/lib/crypto/powerpc/
H A Dsha1.h45 u32 unit = min_t(size_t, nblocks, MAX_BYTES / SHA1_BLOCK_SIZE); in sha1_blocks()
51 data += unit * SHA1_BLOCK_SIZE; in sha1_blocks()
57 const u8 data[SHA1_BLOCK_SIZE]);
64 data += SHA1_BLOCK_SIZE; in sha1_blocks()
/linux/include/crypto/
H A Dsha1.h12 #define SHA1_BLOCK_SIZE 64 macro
26 u8 buffer[SHA1_BLOCK_SIZE];
53 u8 buf[SHA1_BLOCK_SIZE];
/linux/crypto/
H A Dsha1.c34 partial = ctx.bytecount % SHA1_BLOCK_SIZE; in __crypto_sha1_export()
186 .base.cra_blocksize = SHA1_BLOCK_SIZE,
204 .base.cra_blocksize = SHA1_BLOCK_SIZE,
/linux/lib/crypto/s390/
H A Dsha1.h17 nblocks * SHA1_BLOCK_SIZE); in sha1_blocks()
/linux/lib/crypto/arm64/
H A Dsha1.h25 data += (nblocks - rem) * SHA1_BLOCK_SIZE; in sha1_blocks()
/linux/lib/crypto/mips/
H A Dsha1.h76 data += SHA1_BLOCK_SIZE; in sha1_blocks()
/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c375 .block_size = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/
H A Dimg-hash.c805 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/caam/
H A Dcaamhash.c1592 .blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/axis/
H A Dartpec6_crypto.c2640 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/net/ipv6/
H A Daddrconf.c3346 char __data[SHA1_BLOCK_SIZE]; in ipv6_generate_stable_address()