Home
last modified time | relevance | path

Searched refs:TPM2_ALG_ID (Results 1 – 25 of 28) sorted by relevance

12

/external/tpm2-tss/include/tss2/
Dtss2_tpm2_types.h70 typedef UINT16 TPM2_ALG_ID; typedef
72 #define TPM2_ALG_ERROR ((TPM2_ALG_ID) 0x0000)
73 #define TPM2_ALG_RSA ((TPM2_ALG_ID) 0x0001)
74 #define TPM2_ALG_TDES ((TPM2_ALG_ID) 0x0003)
75 #define TPM2_ALG_SHA ((TPM2_ALG_ID) 0x0004)
76 #define TPM2_ALG_SHA1 ((TPM2_ALG_ID) 0x0004)
77 #define TPM2_ALG_HMAC ((TPM2_ALG_ID) 0x0005)
78 #define TPM2_ALG_AES ((TPM2_ALG_ID) 0x0006)
79 #define TPM2_ALG_MGF1 ((TPM2_ALG_ID) 0x0007)
80 #define TPM2_ALG_KEYEDHASH ((TPM2_ALG_ID) 0x0008)
[all …]
/external/tpm2-tss/src/tss2-esys/
Desys_crypto.h26 TSS2_RC iesys_crypto_hash_get_digest_size(TPM2_ALG_ID hashAlg, size_t *size);
29 TPM2_ALG_ID alg,
51 TPM2_ALG_ID alg,
64 TPM2_ALG_ID alg,
76 TPM2_ALG_ID hashAlg,
88 TPM2_ALG_ID hash_alg,
97 TPM2_ALG_ID hashAlg,
Desys_crypto_ossl.h23 TPM2_ALG_ID hashAlg);
54 TPM2_ALG_ID hmacAlg,
60 TPM2_ALG_ID hmacAlg,
105 TPM2_ALG_ID tpm_sym_alg,
107 TPM2_ALG_ID tpm_mode,
115 TPM2_ALG_ID tpm_sym_alg,
117 TPM2_ALG_ID tpm_mode,
Desys_crypto_bssl.h23 TPM2_ALG_ID hashAlg);
54 TPM2_ALG_ID hmacAlg,
60 TPM2_ALG_ID hmacAlg,
105 TPM2_ALG_ID tpm_sym_alg,
107 TPM2_ALG_ID tpm_mode,
115 TPM2_ALG_ID tpm_sym_alg,
117 TPM2_ALG_ID tpm_mode,
Desys_crypto_gcrypt.h21 TPM2_ALG_ID hashAlg);
51 TPM2_ALG_ID hmacAlg,
57 TPM2_ALG_ID hmacAlg,
104 TPM2_ALG_ID tpm_sym_alg,
106 TPM2_ALG_ID tpm_mode,
114 TPM2_ALG_ID tpm_sym_alg,
116 TPM2_ALG_ID tpm_mode,
Desys_crypto.c32 iesys_crypto_hash_get_digest_size(TPM2_ALG_ID hashAlg, size_t * size) in iesys_crypto_hash_get_digest_size()
83 iesys_crypto_pHash(TPM2_ALG_ID alg, in iesys_crypto_pHash()
161 iesys_crypto_authHmac(TPM2_ALG_ID alg, in iesys_crypto_authHmac()
245 iesys_crypto_KDFaHmac(TPM2_ALG_ID alg, in iesys_crypto_KDFaHmac()
326 iesys_crypto_KDFa(TPM2_ALG_ID hashAlg, in iesys_crypto_KDFa()
392 iesys_crypto_KDFe(TPM2_ALG_ID hashAlg, in iesys_crypto_KDFe()
487 iesys_xor_parameter_obfuscation(TPM2_ALG_ID hash_alg, in iesys_xor_parameter_obfuscation()
Desys_crypto_gcrypt.c80 TPM2_ALG_ID hashAlg) in iesys_cryptogcry_hash_start()
272 TPM2_ALG_ID hmacAlg, in iesys_cryptogcry_hmac_start()
901 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptogcry_sym_aes_init()
903 TPM2_ALG_ID tpm_mode, in iesys_cryptogcry_sym_aes_init()
988 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptogcry_sym_aes_encrypt()
990 TPM2_ALG_ID tpm_mode, in iesys_cryptogcry_sym_aes_encrypt()
1037 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptogcry_sym_aes_decrypt()
1039 TPM2_ALG_ID tpm_mode, in iesys_cryptogcry_sym_aes_decrypt()
Desys_crypto_bssl.c67 get_bssl_hash_md(TPM2_ALG_ID hashAlg) in get_bssl_hash_md()
99 TPM2_ALG_ID hashAlg) in iesys_cryptbssl_hash_start()
290 TPM2_ALG_ID hashAlg, in iesys_cryptbssl_hmac_start()
937 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptbssl_sym_aes_encrypt()
939 TPM2_ALG_ID tpm_mode, in iesys_cryptbssl_sym_aes_encrypt()
1022 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptbssl_sym_aes_decrypt()
1024 TPM2_ALG_ID tpm_mode, in iesys_cryptbssl_sym_aes_decrypt()
Desys_crypto_ossl.c59 get_ossl_hash_md(TPM2_ALG_ID hashAlg) in get_ossl_hash_md()
91 TPM2_ALG_ID hashAlg) in iesys_cryptossl_hash_start()
282 TPM2_ALG_ID hashAlg, in iesys_cryptossl_hmac_start()
948 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptossl_sym_aes_encrypt()
950 TPM2_ALG_ID tpm_mode, in iesys_cryptossl_sym_aes_encrypt()
1036 TPM2_ALG_ID tpm_sym_alg, in iesys_cryptossl_sym_aes_decrypt()
1038 TPM2_ALG_ID tpm_mode, in iesys_cryptossl_sym_aes_decrypt()
Desys_iutil.h23 TPM2_ALG_ID alg; /**< The hash algorithm. */
/external/tpm2-tss/src/tss2-fapi/
Dfapi_crypto.h60 TPM2_ALG_ID hashAlgorithm);
83 TPM2_ALG_ID *certAlgorithmId,
88 TPM2_ALG_ID hashAlgorithm);
107 TPM2_ALG_ID signatureAlgorithm,
110 TPM2_ALG_ID
Dfapi_crypto.c165 ifapi_initialize_sign_public(TPM2_ALG_ID signatureAlgorithm, in ifapi_initialize_sign_public()
239 get_hash_md(TPM2_ALG_ID hashAlgorithm) in get_hash_md()
266 get_sig_scheme(TPM2_ALG_ID signatureScheme) in get_sig_scheme()
1087 TPM2_ALG_ID
1094 TPM2_ALG_ID algorithmId = TPM2_ALG_ERROR; in ifapi_get_signature_algorithm_from_pem()
1372 ifapi_hash_get_digest_size(TPM2_ALG_ID hashAlgorithm) in ifapi_hash_get_digest_size()
1405 get_ossl_hash_md(TPM2_ALG_ID hashAlgorithm) in get_ossl_hash_md()
1439 TPM2_ALG_ID hashAlgorithm) in ifapi_crypto_hash_start()
1670 TPM2_ALG_ID *certAlgorithmId, in ifapi_cert_to_pem()
Dtpm_json_deserialize.c579 ifapi_json_TPM2_ALG_ID_deserialize(json_object *jso, TPM2_ALG_ID *out) in ifapi_json_TPM2_ALG_ID_deserialize()
581 static const struct { TPM2_ALG_ID in; const char *name; } tab[] = { in ifapi_json_TPM2_ALG_ID_deserialize()
1254 SUBTYPE_FILTER(TPMI_ALG_HASH, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_HASH_deserialize()
1268 SUBTYPE_FILTER(TPMI_ALG_SYM, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_SYM_deserialize()
1283 SUBTYPE_FILTER(TPMI_ALG_SYM_OBJECT, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_SYM_OBJECT_deserialize()
1298 SUBTYPE_FILTER(TPMI_ALG_SYM_MODE, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_SYM_MODE_deserialize()
1312 SUBTYPE_FILTER(TPMI_ALG_KDF, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_KDF_deserialize()
1327 SUBTYPE_FILTER(TPMI_ALG_SIG_SCHEME, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_SIG_SCHEME_deserialize()
2479 SUBTYPE_FILTER(TPMI_ALG_KEYEDHASH_SCHEME, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_KEYEDHASH_SCHEME_deserialize()
3007 SUBTYPE_FILTER(TPMI_ALG_RSA_SCHEME, TPM2_ALG_ID, in ifapi_json_TPMI_ALG_RSA_SCHEME_deserialize()
[all …]
Difapi_policy_types.h195 TPM2_ALG_ID hashAlg; /**< None */
Difapi_policy_instantiate.c118 TPM2_ALG_ID rsaOrEcc = ifapi_get_signature_algorithm_from_pem(keyPEM); in set_pem_key_param()
Dtpm_json_deserialize.h43 ifapi_json_TPM2_ALG_ID_deserialize(json_object *jso, TPM2_ALG_ID *out);
Dtpm_json_serialize.h38 ifapi_json_TPM2_ALG_ID_serialize(const TPM2_ALG_ID in, json_object **jso);
/external/tpm2-tss/test/integration/
Dsapi-util.h168 TPM2_ALG_ID alg,
180 TPM2_ALG_ID alg,
190 GetDigestSize(TPM2_ALG_ID hash);
Dsapi-util.c456 TPM2_ALG_ID alg, in hash()
486 TPM2_ALG_ID alg, in hmac()
637 GetDigestSize(TPM2_ALG_ID hash) in GetDigestSize()
/external/tpm2-tss/src/tss2-mu/
Dtpmu-types.c622 sizeof(TPM2_ALG_ID) + TPM2_SHA1_DIGEST_SIZE, ADDR, digest, Tss2_MU_TPMT_HA_Marshal,
623 sizeof(TPM2_ALG_ID) + TPM2_SHA256_DIGEST_SIZE, ADDR, digest, Tss2_MU_TPMT_HA_Marshal,
624 sizeof(TPM2_ALG_ID) + TPM2_SHA384_DIGEST_SIZE, ADDR, digest, Tss2_MU_TPMT_HA_Marshal,
625 sizeof(TPM2_ALG_ID) + TPM2_SHA512_DIGEST_SIZE, ADDR, digest, Tss2_MU_TPMT_HA_Marshal)
628 sizeof(TPM2_ALG_ID) + TPM2_SHA1_DIGEST_SIZE, digest, Tss2_MU_TPMT_HA_Unmarshal,
629 sizeof(TPM2_ALG_ID) + TPM2_SHA256_DIGEST_SIZE, digest, Tss2_MU_TPMT_HA_Unmarshal,
630 sizeof(TPM2_ALG_ID) + TPM2_SHA384_DIGEST_SIZE, digest, Tss2_MU_TPMT_HA_Unmarshal,
631 sizeof(TPM2_ALG_ID) + TPM2_SHA512_DIGEST_SIZE, digest, Tss2_MU_TPMT_HA_Unmarshal)
/external/tpm2-tss/src/tss2-sys/
Dsysapi_util.h108 bool IsAlgorithmWeak(TPM2_ALG_ID algorith, TPM2_KEY_SIZE key_size);
Dsysapi_util.c317 bool IsAlgorithmWeak(TPM2_ALG_ID algorithm, TPM2_KEY_SIZE key_size) in IsAlgorithmWeak()
405 bool IsAlgorithmWeak(TPM2_ALG_ID algorithm, TPM2_KEY_SIZE key_size) in IsAlgorithmWeak()
/external/tpm2-tss/test/unit/
DTPMU-marshal.c376 TPM2_ALG_ID id_expected = HOST_TO_BE_16(TPM2_ALG_SHA1); in tpmu_name_marshal()
394 size = sizeof(TPM2_ALG_ID) + TPM2_SHA1_DIGEST_SIZE; in tpmu_name_marshal()
401 assert_memory_equal (buf, &id_expected, sizeof(TPM2_ALG_ID)); in tpmu_name_marshal()
/external/tpm2-tss/doc/
Ddoxygen.dox1021 \fn TSS2_RC iesys_crypto_hash_get_digest_size(TPM2_ALG_ID hashAlg, size_t *size)
1022 \fn TSS2_RC iesys_cryptogcry_hash_start( IESYS_CRYPTO_CONTEXT_BLOB **context, TPM2_ALG_ID hashAlg)
1028 …\fn TSS2_RC iesys_cryptogcry_hmac_start( IESYS_CRYPTO_CONTEXT_BLOB **context, TPM2_ALG_ID hmacAlg,…
1029 …\fn TSS2_RC iesys_cryptogcry_hmac_start2b( IESYS_CRYPTO_CONTEXT_BLOB **context, TPM2_ALG_ID hmacAl…
1035 …\fn TSS2_RC iesys_crypto_pHash( TPM2_ALG_ID alg, const uint8_t rcBuffer[4], const uint8_t ccBuffer…
1036 …\fn TSS2_RC iesys_crypto_authHmac( TPM2_ALG_ID alg, uint8_t *hmacKey, size_t hmacKeySize, const ui…
1039 …\fn TSS2_RC iesys_crypto_KDFaHmac( TPM2_ALG_ID alg, uint8_t *hmacKey, size_t hmacKeySize, uint32_t…
1040 …\fn TSS2_RC iesys_crypto_KDFa( TPM2_ALG_ID hashAlg, uint8_t *hmacKey, size_t hmacKeySize, const ch…
1041 …\fn TSS2_RC iesys_crypto_KDFe( TPM2_ALG_ID hashAlg, TPM2B_ECC_PARAMETER *Z, const char *label, TPM…
1042 …s_cryptogcry_sym_aes_encrypt( uint8_t *key, TPM2_ALG_ID tpm_sym_alg, TPMI_AES_KEY_BITS key_bits, T…
[all …]
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_Import.c173 TPM2_ALG_ID rsaOrEcc = ifapi_get_signature_algorithm_from_pem( in Fapi_Import_Async()

12