/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_hash.h | 196 } 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 D | blake2b.c | 155 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 D | blake2s.c | 147 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 D | md2.c | 52 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 D | sha3.c | 195 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 D | sha3_test.c | 17 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 D | sha1.c | 37 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 D | md4.c | 68 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 D | md5.c | 93 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 D | sha1_accel.c | 66 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 D | sha256_accel.c | 68 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 D | sha512_accel.c | 36 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 D | hash.c | 24 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 D | hash_memory.c | 22 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 D | hash_memory_multi.c | 25 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 D | whirl.c | 50 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 D | sha224.c | 36 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 D | sha512_224.c | 35 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 D | sha384.c | 35 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 D | sha512_256.c | 35 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 D | sha512.c | 86 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 D | pkcs_1_mgf1.c | 28 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 D | chc.c | 79 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 D | aes-gcm-ce.c | 86 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 D | pkcs_5_1.c | 41 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()
|