Searched refs:SM3_BLOCK_SIZE (Results 1 – 10 of 10) sorted by relevance
| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | sm3_base.h | 43 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_update() 47 if (unlikely((partial + len) >= SM3_BLOCK_SIZE)) { in sm3_base_do_update() 51 int p = SM3_BLOCK_SIZE - partial; in sm3_base_do_update() 60 blocks = len / SM3_BLOCK_SIZE; in sm3_base_do_update() 61 len %= SM3_BLOCK_SIZE; in sm3_base_do_update() 65 data += blocks * SM3_BLOCK_SIZE; in sm3_base_do_update() 78 const int bit_offset = SM3_BLOCK_SIZE - sizeof(__be64); in sm3_base_do_finalize() 81 unsigned int partial = sctx->count % SM3_BLOCK_SIZE; in sm3_base_do_finalize() 85 memset(sctx->buffer + partial, 0x0, SM3_BLOCK_SIZE - partial); in sm3_base_do_finalize()
|
| H A D | sm3.h | 11 #define SM3_BLOCK_SIZE 64 macro 30 u8 buffer[SM3_BLOCK_SIZE];
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | hash_sm3.c | 61 #define SM3_BLOCK_SIZE 64 macro 62 #define SM3_CBLOCK (SM3_BLOCK_SIZE) 68 void rkgm_sm3_compress(uint32_t digest[8], const unsigned char block[SM3_BLOCK_SIZE]); 180 unsigned int left = SM3_BLOCK_SIZE - ctx->num; in rkgm_sm3_update() 194 blocks = data_len / SM3_BLOCK_SIZE; in rkgm_sm3_update() 197 data += SM3_BLOCK_SIZE * blocks; in rkgm_sm3_update() 198 data_len -= SM3_BLOCK_SIZE * blocks; in rkgm_sm3_update() 212 if (ctx->num + 9 <= SM3_BLOCK_SIZE) { in rkgm_sm3_final() 213 memset(ctx->block + ctx->num + 1, 0, SM3_BLOCK_SIZE - ctx->num - 9); in rkgm_sm3_final() 215 memset(ctx->block + ctx->num + 1, 0, SM3_BLOCK_SIZE - ctx->num - 1); in rkgm_sm3_final() [all …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | sm3_generic.c | 141 src += SM3_BLOCK_SIZE; in sm3_generic_block_fn() 177 .cra_blocksize = SM3_BLOCK_SIZE,
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_hash.c | 31 {RK_ALGO_SM3, SM3_BLOCK_SIZE}, 39 {RK_ALGO_HMAC_SM3, SM3_BLOCK_SIZE},
|
| H A D | test_throughput.c | 922 {RK_ALGO_SM3, SM3_BLOCK_SIZE}, in test_hash_tp() 930 {RK_ALGO_HMAC_SM3, SM3_BLOCK_SIZE}, in test_hash_tp()
|
| /OK3568_Linux_fs/kernel/arch/arm64/crypto/ |
| H A D | sm3-ce-glue.c | 73 .base.cra_blocksize = SM3_BLOCK_SIZE,
|
| /OK3568_Linux_fs/external/security/librkcrypto/include/ |
| H A D | rkcrypto_common.h | 62 #define SM3_BLOCK_SIZE 64 macro
|
| /OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 2283 req->block_sz = SM3_BLOCK_SIZE; in safexcel_sm3_init() 2319 .cra_blocksize = SM3_BLOCK_SIZE, 2346 req->len = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init() 2347 req->processed = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init() 2353 req->block_sz = SM3_BLOCK_SIZE; in safexcel_hmac_sm3_init() 2391 .cra_blocksize = SM3_BLOCK_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ccree/ |
| H A D | cc_hash.c | 1747 .blocksize = SM3_BLOCK_SIZE,
|