Home
last modified time | relevance | path

Searched refs:sha256 (Results 1 – 13 of 13) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsha256_accel.c71 void *state = md->sha256.state; in sha256_compress_nblocks()
93 md->sha256.curlen = 0; in sha256_init()
94 md->sha256.length = 0; in sha256_init()
128 if (md->sha256.curlen >= sizeof(md->sha256.buf)) { in sha256_done()
134 md->sha256.length += md->sha256.curlen * 8; in sha256_done()
137 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0x80; in sha256_done()
143 if (md->sha256.curlen > 56) { in sha256_done()
145 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0; in sha256_done()
148 md->sha256.curlen = 0; in sha256_done()
153 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0; in sha256_done()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/sha2/
A Dsha224.c40 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()
A Dsha256.c74 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()
235 if (md->sha256.curlen >= sizeof(md->sha256.buf)) { in sha256_done()
241 md->sha256.length += md->sha256.curlen * 8; in sha256_done()
244 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0x80; in sha256_done()
252 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0; in sha256_done()
255 md->sha256.curlen = 0; in sha256_done()
260 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0; in sha256_done()
[all …]
A Dsub.mk4 srcs-$(_CFG_CORE_LTC_SHA256_DESC) += sha256.c
/optee_os-3.20.0/lib/libmbedtls/
A Dsub.mk61 SRCS_CRYPTO += sha256.c
95 SRCS_CRYPTO += sha256.c
/optee_os-3.20.0/core/tee/
A Dtee_fs_key_manager.c170 static TEE_Result sha256(uint8_t *out, size_t out_size, const uint8_t *in, in sha256() function
214 res = sha256(sha, sizeof(sha), fek, TEE_FS_KM_FEK_SIZE); in essiv()
/optee_os-3.20.0/core/include/
A Dtpm2.h80 uint8_t sha256[TPM2_SHA256_DIGEST_SIZE]; member
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dssl_tls.c1926 mbedtls_sha256_context sha256; in ssl_calc_verify_tls_sha256()
1928 mbedtls_sha256_init( &sha256 ); in ssl_calc_verify_tls_sha256()
1932 mbedtls_sha256_clone( &sha256, &ssl->handshake->fin_sha256 ); in ssl_calc_verify_tls_sha256()
1933 mbedtls_sha256_finish_ret( &sha256, hash ); in ssl_calc_verify_tls_sha256()
1940 mbedtls_sha256_free( &sha256 ); in ssl_calc_verify_tls_sha256()
3289 mbedtls_sha256_context sha256; in ssl_calc_finished_tls_sha256() local
3321 mbedtls_sha256_init( &sha256 ); in ssl_calc_finished_tls_sha256()
3325 mbedtls_sha256_clone( &sha256, &ssl->handshake->fin_sha256 ); in ssl_calc_finished_tls_sha256()
3335 sha256.state, sizeof( sha256.state ) ); in ssl_calc_finished_tls_sha256()
3338 mbedtls_sha256_finish_ret( &sha256, padbuf ); in ssl_calc_finished_tls_sha256()
[all …]
A Dmd.c451 ALLOC( sha256 ); in mbedtls_md_setup()
/optee_os-3.20.0/scripts/
A Dgen_tee_bin.py201 data += hashlib.sha256(page).digest()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_hash.h159 struct sha256_state sha256; member
/optee_os-3.20.0/core/include/crypto/
A Dcrypto_impl.h58 CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED(sha256, hash)
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dcompat-1.3.h2245 #define sha256 mbedtls_sha256 macro

Completed in 34 milliseconds