Home
last modified time | relevance | path

Searched refs:hash_state (Results 1 – 25 of 44) sorted by relevance

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_hash.h196 } hash_state; typedef
217 int (*init)(hash_state *hash);
245 int chc_init(hash_state * md);
306 int sha512_init(hash_state * md);
317 int sha384_init(hash_state * md);
347 int sha256_init(hash_state * md);
366 int sha1_init(hash_state * md);
418 int md5_init(hash_state * md);
426 int md4_init(hash_state * md);
434 int md2_init(hash_state * md);
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dblake2b.c155 static void s_blake2b_set_lastblock(hash_state *md) in s_blake2b_set_lastblock()
163 static void s_blake2b_increment_counter(hash_state *md, ulong64 inc) in s_blake2b_increment_counter()
169 static void s_blake2b_init0(hash_state *md) in s_blake2b_init0()
180 static int s_blake2b_init_param(hash_state *md, const unsigned char *P) in s_blake2b_init_param()
304 static int s_blake2b_compress(hash_state *md, const unsigned char *buf) in ss_blake2b_compress()
405 int blake2b_done(hash_state *md, unsigned char *out) in blake2b_done()
429 zeromem(md, sizeof(hash_state)); in blake2b_done()
473 hash_state md; in blake2b_512_test()
520 hash_state md; in blake2b_384_test()
573 hash_state md; in blake2b_256_test()
[all …]
A Dblake2s.c147 static void s_blake2s_set_lastblock(hash_state *md) in s_blake2s_set_lastblock()
161 static int s_blake2s_init0(hash_state *md) in s_blake2s_init0()
174 static int s_blake2s_init_param(hash_state *md, const unsigned char *P) in s_blake2s_init_param()
296 static int s_blake2s_compress(hash_state *md, const unsigned char *buf) in ss_blake2s_compress()
340 static int s_blake2s_compress(hash_state *md, const unsigned char *buf) in s_blake2s_compress()
394 int blake2s_done(hash_state *md, unsigned char *out) in blake2s_done()
417 zeromem(md, sizeof(hash_state)); in blake2s_done()
463 hash_state md; in blake2s_256_test()
507 hash_state md; in blake2s_224_test()
549 hash_state md; in blake2s_160_test()
[all …]
A Dmd2.c52 static void s_md2_update_chksum(hash_state *md) in s_md2_update_chksum()
66 static void s_md2_compress(hash_state *md) in s_md2_compress()
93 int md2_init(hash_state *md) in md2_init()
112 int md2_process(hash_state *md, const unsigned char *in, unsigned long inlen) in md2_process()
143 int md2_done(hash_state * md, unsigned char *out) in md2_done()
173 zeromem(md, sizeof(hash_state)); in md2_done()
225 hash_state md; in md2_test()
A Dsha3.c195 static LTC_INLINE int ss_done(hash_state *md, unsigned char *hash, ulong64 pad) in ss_done()
217 int sha3_224_init(hash_state *md) in sha3_224_init()
225 int sha3_256_init(hash_state *md) in sha3_256_init()
233 int sha3_384_init(hash_state *md) in sha3_384_init()
241 int sha3_512_init(hash_state *md) in sha3_512_init()
250 int sha3_shake_init(hash_state *md, int num) in sha3_shake_init()
260 int sha3_process(hash_state *md, const unsigned char *in, unsigned long inlen) in sha3_process()
313 int sha3_done(hash_state *md, unsigned char *out) in sha3_done()
320 int keccak_done(hash_state *md, unsigned char *out) in keccak_done()
327 int sha3_shake_done(hash_state *md, unsigned char *out, unsigned long outlen) in sha3_shake_done()
[all …]
A Dsha3_test.c17 hash_state c; in sha3_224_test()
74 hash_state c; in sha3_256_test()
168 hash_state c; in sha3_384_test()
221 hash_state c; in sha3_512_test()
276 hash_state c; in sha3_shake_test()
400 hash_state c; in keccak_224_test()
475 hash_state c; in keccak_256_test()
550 hash_state c; in keccak_384_test()
633 hash_state c; in keccak_512_test()
A Dsha1.c37 static int ss_sha1_compress(hash_state *md, const unsigned char *buf) in ss_sha1_compress()
39 static int s_sha1_compress(hash_state *md, const unsigned char *buf) in ss_sha1_compress()
143 static int s_sha1_compress(hash_state *md, const unsigned char *buf) in s_sha1_compress()
157 int sha1_init(hash_state * md) in sha1_init()
185 int sha1_done(hash_state * md, unsigned char *out) in sha1_done()
228 zeromem(md, sizeof(hash_state)); in sha1_done()
260 hash_state md; in sha1_test()
A Dmd4.c68 static int ss_md4_compress(hash_state *md, const unsigned char *buf) in ss_md4_compress()
70 static int s_md4_compress(hash_state *md, const unsigned char *buf) in ss_md4_compress()
152 static int s_md4_compress(hash_state *md, const unsigned char *buf) in s_md4_compress()
166 int md4_init(hash_state * md) in md4_init()
193 int md4_done(hash_state * md, unsigned char *out) in md4_done()
236 zeromem(md, sizeof(hash_state)); in md4_done()
279 hash_state md; in md4_test()
A Dmd5.c93 static int ss_md5_compress(hash_state *md, const unsigned char *buf) in ss_md5_compress()
95 static int s_md5_compress(hash_state *md, const unsigned char *buf) in ss_md5_compress()
211 static int s_md5_compress(hash_state *md, const unsigned char *buf) in s_md5_compress()
225 int md5_init(hash_state * md) in md5_init()
252 int md5_done(hash_state * md, unsigned char *out) in md5_done()
296 zeromem(md, sizeof(hash_state)); in md5_done()
340 hash_state md; in md5_test()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsha1_accel.c66 static int sha1_compress_nblocks(hash_state *md, const unsigned char *buf, in sha1_compress_nblocks()
77 static int sha1_compress(hash_state *md, const unsigned char *buf) in sha1_compress()
96 int sha1_init(hash_state * md) in sha1_init()
115 int sha1_done(hash_state * md, unsigned char *out) in sha1_done()
158 zeromem(md, sizeof(hash_state)); in sha1_done()
190 hash_state md; in sha1_test()
A Dsha256_accel.c68 static int sha256_compress_nblocks(hash_state *md, const unsigned char *buf, in sha256_compress_nblocks()
79 static int sha256_compress(hash_state *md, const unsigned char *buf) in sha256_compress()
89 int sha256_init(hash_state * md) in sha256_init()
121 int sha256_done(hash_state * md, unsigned char *out) in sha256_done()
165 zeromem(md, sizeof(hash_state)); in sha256_done()
199 hash_state md; in sha256_test()
A Dsha512_accel.c36 static int sha512_compress_nblocks(hash_state *md, const unsigned char *buf, in sha512_compress_nblocks()
48 static int sha512_compress(hash_state *md, const unsigned char *buf) in sha512_compress()
58 int sha512_init(hash_state * md) in sha512_init()
82 int sha512_done(hash_state * md, unsigned char *out) in sha512_done()
128 zeromem(md, sizeof(hash_state)); in sha512_done()
170 hash_state md; in sha512_test()
A Dhash.c24 hash_state state;
175 hash_state hs; in hash_sha256_check()
194 hash_state hs; in hash_sha512_256_compute()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/helper/
A Dhash_memory.c22 hash_state *md; in hash_memory()
38 md = XMALLOC(sizeof(hash_state)); in hash_memory()
53 zeromem(md, sizeof(hash_state)); in hash_memory()
A Dhash_memory_multi.c25 hash_state *md; in hash_memory_multi()
44 md = XMALLOC(sizeof(hash_state)); in hash_memory_multi()
72 zeromem(md, sizeof(hash_state)); in hash_memory_multi()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/whirl/
A Dwhirl.c50 static int ss_whirlpool_compress(hash_state *md, const unsigned char *buf) in ss_whirlpool_compress()
52 static int s_whirlpool_compress(hash_state *md, const unsigned char *buf) in ss_whirlpool_compress()
106 static int s_whirlpool_compress(hash_state *md, const unsigned char *buf) in s_whirlpool_compress()
121 int whirlpool_init(hash_state * md) in whirlpool_init()
143 int whirlpool_done(hash_state * md, unsigned char *out) in whirlpool_done()
280 hash_state md; in whirlpool_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/sha2/
A Dsha224.c36 int sha224_init(hash_state * md) in sha224_init()
59 int sha224_done(hash_state * md, unsigned char *out) in sha224_done()
104 hash_state md; in sha224_test()
A Dsha512_224.c35 int sha512_224_init(hash_state * md) in sha512_224_init()
58 int sha512_224_done(hash_state * md, unsigned char *out) in sha512_224_done()
106 hash_state md; in sha512_224_test()
A Dsha384.c35 int sha384_init(hash_state * md) in sha384_init()
58 int sha384_done(hash_state * md, unsigned char *out) in sha384_done()
110 hash_state md; in sha384_test()
A Dsha512_256.c35 int sha512_256_init(hash_state * md) in sha512_256_init()
58 int sha512_256_done(hash_state * md, unsigned char *out) in sha512_256_done()
106 hash_state md; in sha512_256_test()
A Dsha512.c86 static int ss_sha512_compress(hash_state * md, const unsigned char *buf) in ss_sha512_compress()
88 static int s_sha512_compress(hash_state * md, const unsigned char *buf) in ss_sha512_compress()
153 static int s_sha512_compress(hash_state * md, const unsigned char *buf) in s_sha512_compress()
167 int sha512_init(hash_state * md) in sha512_init()
198 int sha512_done(hash_state * md, unsigned char *out) in sha512_done()
244 zeromem(md, sizeof(hash_state)); in sha512_done()
286 hash_state md; in sha512_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/
A Dpkcs_1_mgf1.c28 hash_state *md; in pkcs_1_mgf1()
43 md = XMALLOC(sizeof(hash_state)); in pkcs_1_mgf1()
87 zeromem(md, sizeof(hash_state)); in pkcs_1_mgf1()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/chc/
A Dchc.c79 int chc_init(hash_state *md) in chc_init()
124 static int s_chc_compress(hash_state *md, const unsigned char *buf) in s_chc_compress()
157 static int ss_chc_process(hash_state * md, const unsigned char *in, unsigned long inlen);
167 int chc_process(hash_state * md, const unsigned char *in, unsigned long inlen) in chc_process()
191 int chc_done(hash_state *md, unsigned char *out) in chc_done()
241 zeromem(md, sizeof(hash_state)); in chc_done()
269 hash_state md; in chc_test()
/optee_os-3.20.0/core/arch/arm/crypto/
A Daes-gcm-ce.c86 get_be_block(dg, state->hash_state); in internal_aes_gcm_ghash_update()
94 put_be_block(state->hash_state, dg); in internal_aes_gcm_ghash_update()
182 get_be_block(dg, state->hash_state); in internal_aes_gcm_update_payload_blocks()
204 put_be_block(state->hash_state, dg); in internal_aes_gcm_update_payload_blocks()
220 get_be_block(dg, state->hash_state); in internal_aes_gcm_update_payload_blocks()
229 put_be_block(state->hash_state, dg); in internal_aes_gcm_update_payload_blocks()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs5/
A Dpkcs_5_1.c41 hash_state *md; in s_pkcs_5_alg1_common()
63 md = XMALLOC(sizeof(hash_state)); in s_pkcs_5_alg1_common()
132 zeromem(md, sizeof(hash_state)); in s_pkcs_5_alg1_common()

Completed in 23 milliseconds

12