| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | sha512_base.h | 61 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update() 67 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) { in sha512_base_do_update() 71 int p = SHA512_BLOCK_SIZE - partial; in sha512_base_do_update() 80 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update() 81 len %= SHA512_BLOCK_SIZE; in sha512_base_do_update() 85 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update() 98 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(__be64[2]); in sha512_base_do_finalize() 101 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize() 105 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial); in sha512_base_do_finalize()
|
| H A D | sha.h | 24 #define SHA512_BLOCK_SIZE 128 macro 93 u8 buf[SHA512_BLOCK_SIZE];
|
| /OK3568_Linux_fs/kernel/arch/sparc/crypto/ |
| H A D | sha512_glue.c | 68 done = SHA512_BLOCK_SIZE - partial; in __sha512_sparc64_update() 72 if (len - done >= SHA512_BLOCK_SIZE) { in __sha512_sparc64_update() 73 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 76 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 86 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_update() 89 if (partial + len < SHA512_BLOCK_SIZE) { in sha512_sparc64_update() 105 static const u8 padding[SHA512_BLOCK_SIZE] = { 0x80, }; in sha512_sparc64_final() 112 index = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_final() 113 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final() 157 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/crypto/nx/ |
| H A D | nx-sha512.c | 68 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() 76 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update() 77 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update() 128 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update() 167 } while (leftover >= SHA512_BLOCK_SIZE); in nx_sha512_update() 200 if (sctx->count[0] >= SHA512_BLOCK_SIZE) { in nx_sha512_final() 218 len = sctx->count[0] & (SHA512_BLOCK_SIZE - 1); in nx_sha512_final() 222 if (len != (sctx->count[0] & (SHA512_BLOCK_SIZE - 1))) { in nx_sha512_final() 283 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/arch/mips/cavium-octeon/crypto/ |
| H A D | octeon-sha512.c | 119 index = sctx->count[0] % SHA512_BLOCK_SIZE; in __octeon_sha512_update() 125 part_len = SHA512_BLOCK_SIZE - index; in __octeon_sha512_update() 132 for (i = part_len; i + SHA512_BLOCK_SIZE <= len; in __octeon_sha512_update() 133 i += SHA512_BLOCK_SIZE) in __octeon_sha512_update() 157 if ((sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in octeon_sha512_update() 234 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/arch/x86/crypto/ |
| H A D | sha512_ssse3_glue.c | 50 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_update() 110 .cra_blocksize = SHA512_BLOCK_SIZE, 186 .cra_blocksize = SHA512_BLOCK_SIZE, 252 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/arch/arm/crypto/ |
| H A D | sha512-neon-glue.c | 32 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_neon_update() 91 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| H A D | sha512-glue.c | 63 .cra_blocksize = SHA512_BLOCK_SIZE, 77 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/arch/arm64/crypto/ |
| H A D | sha512-ce-glue.c | 43 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 D | sha512-glue.c | 65 .base.cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/u-boot/tools/rockchip/ |
| H A D | sha2.c | 407 #define SHA512_MASK (SHA512_BLOCK_SIZE - 1) 533 space = SHA512_BLOCK_SIZE - pos; in sha512_hash() 543 space = SHA512_BLOCK_SIZE; in sha512_hash() 545 bsw_64(ctx->wbuf, SHA512_BLOCK_SIZE >> 3); in sha512_hash() 584 if (i > SHA512_BLOCK_SIZE - 17) { in sha_end()
|
| H A D | sha2.h | 97 #define SHA512_BLOCK_SIZE 128 macro
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_hash.c | 27 {RK_ALGO_SHA512, SHA512_BLOCK_SIZE}, 38 {RK_ALGO_HMAC_SHA512, SHA512_BLOCK_SIZE},
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | sha512_generic.c | 156 src += SHA512_BLOCK_SIZE; in sha512_generic_block_fn() 192 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ccree/ |
| H A D | cc_hash.h | 19 #define CC_MAX_HASH_BLCK_SIZE SHA512_BLOCK_SIZE
|
| /OK3568_Linux_fs/kernel/arch/s390/crypto/ |
| H A D | sha512_s390.c | 79 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/crypto/mediatek/ |
| H A D | mtk-sha.c | 100 u8 ipad[SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 101 u8 opad[SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 400 ctx->bs = SHA512_BLOCK_SIZE; in mtk_sha_init() 1104 .cra_blocksize = SHA512_BLOCK_SIZE, 1155 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/external/security/librkcrypto/include/ |
| H A D | rkcrypto_common.h | 68 #define SHA512_BLOCK_SIZE 128 macro
|
| /OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 1532 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_sha512_init() 1568 .cra_blocksize = SHA512_BLOCK_SIZE, 1589 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_sha384_init() 1652 req->len = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1653 req->processed = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1659 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1697 .cra_blocksize = SHA512_BLOCK_SIZE, 1724 req->len = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init() 1725 req->processed = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init() 1731 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | omap-sham.c | 137 #define BUFLEN SHA512_BLOCK_SIZE 166 u8 ipad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 167 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 441 d = SHA512_BLOCK_SIZE; in get_block_size() 1003 bs = SHA512_BLOCK_SIZE; in omap_sham_init() 1669 .cra_blocksize = SHA512_BLOCK_SIZE, 1716 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| H A D | sa2ul.h | 310 u8 authkey[SHA512_BLOCK_SIZE];
|
| H A D | atmel-sha.c | 107 u8 buffer[SHA_BUFFER_LEN + SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 458 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_init() 1310 .halg.base.cra_blocksize = SHA512_BLOCK_SIZE, 1613 u8 buffer[SHA512_BLOCK_SIZE]; 1665 u32 ipad[SHA512_BLOCK_SIZE / sizeof(u32)]; 1666 u32 opad[SHA512_BLOCK_SIZE / sizeof(u32)]; 1718 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_hmac_setup() 2068 .halg.base.cra_blocksize = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ccp/ |
| H A D | ccp-crypto.h | 185 #define MAX_SHA_BLOCK_SIZE SHA512_BLOCK_SIZE
|
| /OK3568_Linux_fs/kernel/fs/verity/ |
| H A D | hash_algs.c | 23 .block_size = SHA512_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/crypto/bcm/ |
| H A D | cipher.h | 49 #define MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE
|