Home
last modified time | relevance | path

Searched refs:SM3_BLOCK_SIZE (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/kernel/include/crypto/
H A Dsm3_base.h43 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 Dsm3.h11 #define SM3_BLOCK_SIZE 64 macro
30 u8 buffer[SM3_BLOCK_SIZE];
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Dhash_sm3.c61 #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 Dsm3_generic.c141 src += SM3_BLOCK_SIZE; in sm3_generic_block_fn()
177 .cra_blocksize = SM3_BLOCK_SIZE,
/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_hash.c31 {RK_ALGO_SM3, SM3_BLOCK_SIZE},
39 {RK_ALGO_HMAC_SM3, SM3_BLOCK_SIZE},
H A Dtest_throughput.c922 {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 Dsm3-ce-glue.c73 .base.cra_blocksize = SM3_BLOCK_SIZE,
/OK3568_Linux_fs/external/security/librkcrypto/include/
H A Drkcrypto_common.h62 #define SM3_BLOCK_SIZE 64 macro
/OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c2283 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 Dcc_hash.c1747 .blocksize = SM3_BLOCK_SIZE,