Searched refs:sha3 (Results 1 – 10 of 10) sorted by relevance
| /optee_os/core/lib/libtomcrypt/ |
| H A D | sha3_accel.c | 80 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_224_init() 81 md->sha3.capacity_words = 2 * 224 / (8 * sizeof(ulong64)); in sha3_224_init() 88 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_256_init() 89 md->sha3.capacity_words = 2 * 256 / (8 * sizeof(ulong64)); in sha3_256_init() 96 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_384_init() 97 md->sha3.capacity_words = 2 * 384 / (8 * sizeof(ulong64)); in sha3_384_init() 104 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_512_init() 105 md->sha3.capacity_words = 2 * 512 / (8 * sizeof(ulong64)); in sha3_512_init() 113 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_shake_init() 114 md->sha3.capacity_words = (unsigned short)(2 * num / (8 * sizeof(ulong64))); in sha3_shake_init() [all …]
|
| H A D | shake.c | 15 struct sha3_state sha3; member 27 if (sha3_shake_init((void *)&c->sha3, num) == CRYPT_OK) in do_shake_init() 38 if (sha3_process((void *)&c->sha3, data, len) == CRYPT_OK) in do_sha3_update() 49 if (sha3_shake_done((void *)&c->sha3, digest, len) == CRYPT_OK) in do_shake_final() 82 dc->sha3 = sc->sha3; in do_sha3_copy_state()
|
| H A D | sub.mk | 109 srcs-$(_CFG_CORE_LTC_SHA3_DESC) += src/hashes/sha3.c
|
| /optee_os/core/lib/libtomcrypt/src/hashes/ |
| H A D | sha3.c | 202 md->sha3.s[md->sha3.word_index] ^= (md->sha3.saved ^ (pad << (md->sha3.byte_index * 8))); in ss_done() 203 … md->sha3.s[SHA3_KECCAK_SPONGE_WORDS - md->sha3.capacity_words - 1] ^= CONST64(0x8000000000000000); in ss_done() 204 s_keccakf(md->sha3.s); in ss_done() 208 STORE64L(md->sha3.s[i], md->sha3.sb + i * 8); in ss_done() 211 XMEMCPY(hash, md->sha3.sb, md->sha3.capacity_words * 4); in ss_done() 220 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_224_init() 221 md->sha3.capacity_words = 2 * 224 / (8 * sizeof(ulong64)); in sha3_224_init() 228 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_256_init() 229 md->sha3.capacity_words = 2 * 256 / (8 * sizeof(ulong64)); in sha3_256_init() 236 XMEMSET(&md->sha3, 0, sizeof(md->sha3)); in sha3_384_init() [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_hash.c | 81 mbedtls_sha3_free(&operation->ctx.sha3); in mbedtls_psa_hash_abort() 147 mbedtls_sha3_init(&operation->ctx.sha3); in mbedtls_psa_hash_setup() 148 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_224); in mbedtls_psa_hash_setup() 153 mbedtls_sha3_init(&operation->ctx.sha3); in mbedtls_psa_hash_setup() 154 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_256); in mbedtls_psa_hash_setup() 159 mbedtls_sha3_init(&operation->ctx.sha3); in mbedtls_psa_hash_setup() 160 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_384); in mbedtls_psa_hash_setup() 165 mbedtls_sha3_init(&operation->ctx.sha3); in mbedtls_psa_hash_setup() 166 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_512); in mbedtls_psa_hash_setup() 247 mbedtls_sha3_clone(&target_operation->ctx.sha3, in mbedtls_psa_hash_clone() [all …]
|
| H A D | md.c | 492 ALLOC(sha3); in mbedtls_md_setup()
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_builtin_primitives.h | 77 mbedtls_sha3_context sha3; member
|
| /optee_os/lib/libmbedtls/ |
| H A D | sub.mk | 66 SRCS_CRYPTO += sha3.c 104 SRCS_CRYPTO += sha3.c
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_hash.h | 153 struct sha3_state sha3; member
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 257 - Hashes: hkdf.h, md5.h, ripemd160.h, sha1.h, sha3.h, sha256.h, sha512.h;
|