Home
last modified time | relevance | path

Searched refs:hashes (Results 1 – 11 of 11) sorted by relevance

/optee_os/scripts/
H A Dsign_helper_kms.py10 from cryptography.hazmat.primitives import hashes, serialization
47 hashes.HashAlgorithm]
61 if (isinstance(algorithm._algorithm, hashes.SHA256) or
62 isinstance(algorithm, hashes.SHA256)):
64 elif (isinstance(algorithm._algorithm, hashes.SHA384) or
65 isinstance(algorithm, hashes.SHA384)):
67 elif (isinstance(algorithm._algorithm, hashes.SHA512) or
68 isinstance(algorithm, hashes.SHA512)):
82 self, padding: AsymmetricPadding, algorithm: hashes.HashAlgorithm
H A Dprint_tee_hash.py8 from cryptography.hazmat.primitives import hashes
69 h = hashes.Hash(hashes.SHA256(), default_backend())
H A Dderive_rpmb_key.py58 from cryptography.hazmat.primitives import hashes, hmac
70 h = hmac.HMAC(huk, hashes.SHA256())
H A Dsign_encrypt.py42 from cryptography.hazmat.primitives import hashes
45 h = hashes.Hash(hashes.SHA512())
344 from cryptography.hazmat.primitives import hashes
362 self.chosen_hash = hashes.SHA256()
376 from cryptography.hazmat.primitives import hashes
378 h = hashes.Hash(self.chosen_hash, default_backend())
/optee_os/core/mm/
H A Dfobj.c417 uint8_t *hashes; member
425 unsigned int num_pages, void *hashes, void *store) in rop_init() argument
427 rop->hashes = hashes; in rop_init()
432 struct fobj *fobj_ro_paged_alloc(unsigned int num_pages, void *hashes, in fobj_ro_paged_alloc() argument
437 assert(num_pages && hashes && store); in fobj_ro_paged_alloc()
443 rop_init(rop, &ops_ro_paged, num_pages, hashes, store); in fobj_ro_paged_alloc()
459 free(rop->hashes); in rop_uninit()
473 const uint8_t *hash = rop->hashes + page_idx * TEE_SHA256_HASH_SIZE; in rop_load_page_helper()
595 struct fobj *fobj_ro_reloc_paged_alloc(unsigned int num_pages, void *hashes, in fobj_ro_reloc_paged_alloc() argument
606 assert(num_pages && hashes && store); in fobj_ro_reloc_paged_alloc()
[all …]
/optee_os/core/include/mm/
H A Dfobj.h87 struct fobj *fobj_ro_paged_alloc(unsigned int num_pages, void *hashes,
106 struct fobj *fobj_ro_reloc_paged_alloc(unsigned int num_pages, void *hashes,
/optee_os/core/arch/arm/kernel/
H A Dboot.c459 static struct fobj *ro_paged_alloc(tee_mm_entry_t *mm, void *hashes, in ro_paged_alloc() argument
468 return fobj_ro_reloc_paged_alloc(num_pages, hashes, reloc_offs, in ro_paged_alloc()
471 return fobj_ro_paged_alloc(num_pages, hashes, store); in ro_paged_alloc()
491 uint8_t *hashes = NULL; in init_pager_runtime() local
506 hashes = malloc(hash_size); in init_pager_runtime()
509 assert(hashes); in init_pager_runtime()
510 asan_memcpy_unchecked(hashes, tmp_hashes, hash_size); in init_pager_runtime()
545 const uint8_t *hash = hashes + n * TEE_SHA256_HASH_SIZE; in init_pager_runtime()
598 fobj = ro_paged_alloc(mm, hashes, paged_store); in init_pager_runtime()
/optee_os/core/lib/libtomcrypt/
H A Dsub.mk92 srcs-$(_CFG_CORE_LTC_HASH) += src/hashes/helper/hash_memory.c
93 srcs-$(_CFG_CORE_LTC_HASH) += src/hashes/helper/hash_memory_multi.c
96 srcs-$(_CFG_CORE_LTC_MD5_DESC) += src/hashes/md5.c
102 srcs-$(_CFG_CORE_LTC_SHA1_DESC) += src/hashes/sha1.c
109 srcs-$(_CFG_CORE_LTC_SHA3_DESC) += src/hashes/sha3.c
111 srcs-$(_CFG_CORE_LTC_SHA3_DESC) += src/hashes/sha3_test.c
115 srcs-$(_CFG_CORE_LTC_SHA224_DESC) += src/hashes/sha2/sha224.c
121 srcs-$(_CFG_CORE_LTC_SHA256_DESC) += src/hashes/sha2/sha256.c
125 srcs-$(_CFG_CORE_LTC_SHA384_DESC) += src/hashes/sha2/sha384.c
131 srcs-$(_CFG_CORE_LTC_SHA512_DESC) += src/hashes/sha2/sha512.c
[all …]
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dssl.h4046 const int *hashes);
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog717 * All modules that use hashes or HMAC can now take advantage of PSA Crypto
1016 This helps in saving code size when some of the above hashes are not
1220 * Some modules can now use PSA drivers for hashes, including with no
1223 hashes from PSA when (and only when) MBEDTLS_MD_C is disabled.
1228 Note that some modules are not able to use hashes from PSA yet, including
1230 all hashes only provided by drivers (no built-in hash) is to use
1233 properly negotiate/accept hashes based on their availability in PSA.
1235 implementations of (some) hashes are excluded and those hashes are only
1237 though: that module only use hashes from PSA when MBEDTLS_MD_C is off).
2002 changed: curves and hashes weaker than 255 bits are no longer accepted
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_tls.c2724 const int *hashes) in mbedtls_ssl_conf_sig_hashes() argument
2726 conf->sig_hashes = hashes; in mbedtls_ssl_conf_sig_hashes()