| /optee_os/core/lib/libtomcrypt/ |
| H A D | sha256_accel.c | 71 void *state = md->sha256.state; in sha256_compress_nblocks() 73 COMPILE_TIME_ASSERT(sizeof(md->sha256.state[0]) == sizeof(uint32_t)); in sha256_compress_nblocks() 93 md->sha256.curlen = 0; in sha256_init() 94 md->sha256.length = 0; in sha256_init() 95 md->sha256.state[0] = 0x6A09E667UL; in sha256_init() 96 md->sha256.state[1] = 0xBB67AE85UL; in sha256_init() 97 md->sha256.state[2] = 0x3C6EF372UL; in sha256_init() 98 md->sha256.state[3] = 0xA54FF53AUL; in sha256_init() 99 md->sha256.state[4] = 0x510E527FUL; in sha256_init() 100 md->sha256.state[5] = 0x9B05688CUL; in sha256_init() [all …]
|
| H A D | sub.mk | 121 srcs-$(_CFG_CORE_LTC_SHA256_DESC) += src/hashes/sha2/sha256.c
|
| /optee_os/core/lib/libtomcrypt/src/hashes/sha2/ |
| H A D | sha224.c | 40 md->sha256.curlen = 0; in sha224_init() 41 md->sha256.length = 0; in sha224_init() 42 md->sha256.state[0] = 0xc1059ed8UL; in sha224_init() 43 md->sha256.state[1] = 0x367cd507UL; in sha224_init() 44 md->sha256.state[2] = 0x3070dd17UL; in sha224_init() 45 md->sha256.state[3] = 0xf70e5939UL; in sha224_init() 46 md->sha256.state[4] = 0xffc00b31UL; in sha224_init() 47 md->sha256.state[5] = 0x68581511UL; in sha224_init() 48 md->sha256.state[6] = 0x64f98fa7UL; in sha224_init() 49 md->sha256.state[7] = 0xbefa4fa4UL; in sha224_init()
|
| H A D | sha256.c | 74 S[i] = md->sha256.state[i]; in ss_sha256_compress() 176 md->sha256.state[i] = md->sha256.state[i] + S[i]; in ss_sha256_compress() 200 md->sha256.curlen = 0; in sha256_init() 201 md->sha256.length = 0; in sha256_init() 202 md->sha256.state[0] = 0x6A09E667UL; in sha256_init() 203 md->sha256.state[1] = 0xBB67AE85UL; in sha256_init() 204 md->sha256.state[2] = 0x3C6EF372UL; in sha256_init() 205 md->sha256.state[3] = 0xA54FF53AUL; in sha256_init() 206 md->sha256.state[4] = 0x510E527FUL; in sha256_init() 207 md->sha256.state[5] = 0x9B05688CUL; in sha256_init() [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_hash.c | 47 mbedtls_sha256_free(&operation->ctx.sha256); in mbedtls_psa_hash_abort() 52 mbedtls_sha256_free(&operation->ctx.sha256); in mbedtls_psa_hash_abort() 123 mbedtls_sha256_init(&operation->ctx.sha256); in mbedtls_psa_hash_setup() 124 ret = mbedtls_sha256_starts(&operation->ctx.sha256, 1); in mbedtls_psa_hash_setup() 129 mbedtls_sha256_init(&operation->ctx.sha256); in mbedtls_psa_hash_setup() 130 ret = mbedtls_sha256_starts(&operation->ctx.sha256, 0); in mbedtls_psa_hash_setup() 209 mbedtls_sha256_clone(&target_operation->ctx.sha256, in mbedtls_psa_hash_clone() 210 &source_operation->ctx.sha256); in mbedtls_psa_hash_clone() 215 mbedtls_sha256_clone(&target_operation->ctx.sha256, in mbedtls_psa_hash_clone() 216 &source_operation->ctx.sha256); in mbedtls_psa_hash_clone() [all …]
|
| H A D | md.c | 469 ALLOC(sha256); in mbedtls_md_setup() 474 ALLOC(sha256); in mbedtls_md_setup()
|
| H A D | ssl_tls.c | 6531 mbedtls_md_context_t sha256; in ssl_get_handshake_transcript_sha256() local 6537 mbedtls_md_init(&sha256); in ssl_get_handshake_transcript_sha256() 6538 ret = mbedtls_md_setup(&sha256, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 0); in ssl_get_handshake_transcript_sha256() 6542 ret = mbedtls_md_clone(&sha256, &ssl->handshake->fin_sha256); in ssl_get_handshake_transcript_sha256() 6547 if ((ret = mbedtls_md_finish(&sha256, dst)) != 0) { in ssl_get_handshake_transcript_sha256() 6556 mbedtls_md_free(&sha256); in ssl_get_handshake_transcript_sha256()
|
| /optee_os/core/arch/arm/plat-telechips/scripts/ |
| H A D | tcmktool.py | 8 from hashlib import sha256 15 sha = sha256()
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_builtin_primitives.h | 67 mbedtls_sha256_context sha256; member
|
| /optee_os/core/tee/ |
| H A D | tee_fs_key_manager.c | 169 static TEE_Result sha256(uint8_t *out, size_t out_size, const uint8_t *in, in sha256() function 213 res = sha256(sha, sizeof(sha), fek, TEE_FS_KM_FEK_SIZE); in essiv()
|
| /optee_os/lib/libmbedtls/ |
| H A D | sub.mk | 65 SRCS_CRYPTO += sha256.c 103 SRCS_CRYPTO += sha256.c
|
| /optee_os/scripts/ |
| H A D | gen_tee_bin.py | 201 data += hashlib.sha256(page).digest()
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_hash.h | 159 struct sha256_state sha256; member
|
| /optee_os/core/include/crypto/ |
| H A D | crypto_impl.h | 58 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(sha256, hash)
|
| /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; 884 * Fix "unterminated '#pragma clang attribute push'" in sha256/sha512.c when
|