Home
last modified time | relevance | path

Searched refs:rsaDetail (Results 1 – 25 of 62) sorted by relevance

123

/external/tpm2-tss/test/integration/
Dsapi-asymmetric-encrypt-decrypt.int.c79 in_public.publicArea.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in test_invoke()
80 in_public.publicArea.parameters.rsaDetail.symmetric.keyBits.aes = 128; in test_invoke()
81 in_public.publicArea.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CFB; in test_invoke()
82 in_public.publicArea.parameters.rsaDetail.scheme.scheme = TPM2_ALG_NULL; in test_invoke()
83 in_public.publicArea.parameters.rsaDetail.keyBits = 2048; in test_invoke()
84 in_public.publicArea.parameters.rsaDetail.exponent = 0; in test_invoke()
102 in_public.publicArea.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_NULL; in test_invoke()
103 in_public.publicArea.parameters.rsaDetail.scheme.scheme = TPM2_ALG_NULL; in test_invoke()
104 in_public.publicArea.parameters.rsaDetail.keyBits = 2048; in test_invoke()
105 in_public.publicArea.parameters.rsaDetail.exponent = 0; in test_invoke()
Dsapi-create-loaded.int.c53 in_public.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in test_invoke()
54 in_public.parameters.rsaDetail.symmetric.keyBits.aes = 128; in test_invoke()
55 in_public.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CFB; in test_invoke()
56 in_public.parameters.rsaDetail.scheme.scheme = TPM2_ALG_NULL; in test_invoke()
57 in_public.parameters.rsaDetail.keyBits = 2048; in test_invoke()
Dsapi-command-cancel.int.c56 in_public.publicArea.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in test_invoke()
57 in_public.publicArea.parameters.rsaDetail.symmetric.keyBits.aes = 128; in test_invoke()
58 in_public.publicArea.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CFB; in test_invoke()
59 in_public.publicArea.parameters.rsaDetail.scheme.scheme = TPM2_ALG_NULL; in test_invoke()
60 in_public.publicArea.parameters.rsaDetail.keyBits = 2048; in test_invoke()
Dsapi-policy-template.int.c89 in_public.publicArea.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in test_invoke()
90 in_public.publicArea.parameters.rsaDetail.symmetric.keyBits.aes = 128; in test_invoke()
91 in_public.publicArea.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CFB; in test_invoke()
92 in_public.publicArea.parameters.rsaDetail.scheme.scheme = TPM2_ALG_NULL; in test_invoke()
93 in_public.publicArea.parameters.rsaDetail.keyBits = 2048; in test_invoke()
212 in_public.publicArea.parameters.rsaDetail.symmetric.keyBits.aes = 256; in test_invoke()
Desys-rsa-encrypt-decrypt.int.c86 .parameters.rsaDetail = { in test_esys_rsa_encrypt_decrypt()
124 inPublic.publicArea.parameters.rsaDetail.scheme.scheme = in test_esys_rsa_encrypt_decrypt()
127 inPublic.publicArea.parameters.rsaDetail.scheme.scheme = in test_esys_rsa_encrypt_decrypt()
130 inPublic.publicArea.parameters.rsaDetail.scheme.scheme = in test_esys_rsa_encrypt_decrypt()
132 inPublic.publicArea.parameters.rsaDetail.scheme.details.oaep. in test_esys_rsa_encrypt_decrypt()
Dsapi-util.c68 in_public.publicArea.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in create_primary_rsa_2048_aes_128_cfb()
69 in_public.publicArea.parameters.rsaDetail.symmetric.keyBits.aes = 128; in create_primary_rsa_2048_aes_128_cfb()
70 in_public.publicArea.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CFB; in create_primary_rsa_2048_aes_128_cfb()
71 in_public.publicArea.parameters.rsaDetail.scheme.scheme = TPM2_ALG_NULL; in create_primary_rsa_2048_aes_128_cfb()
72 in_public.publicArea.parameters.rsaDetail.keyBits = 2048; in create_primary_rsa_2048_aes_128_cfb()
Desys-create-fail.int.c129 .parameters.rsaDetail = { in test_esys_create_fail()
240 .parameters.rsaDetail = { in test_esys_create_fail()
Desys-testparms.int.c37 .rsaDetail = { in test_esys_testparms()
Desys-object-changeauth.int.c71 .parameters.rsaDetail = { in test_esys_object_changeauth()
168 .parameters.rsaDetail = { in test_esys_object_changeauth()
Desys-evict-control-serialization.int.c92 .parameters.rsaDetail = { in test_esys_evict_control_serialization()
202 .parameters.rsaDetail = { in test_esys_evict_control_serialization()
Desys-policy-password.int.c117 .parameters.rsaDetail = { in test_esys_policy_password()
239 .parameters.rsaDetail = { in test_esys_policy_password()
Desys-create-policy-auth.int.c144 .parameters.rsaDetail = { in test_esys_create_policy_auth()
224 .parameters.rsaDetail = { in test_esys_create_policy_auth()
Desys-create-password-auth.int.c134 .parameters.rsaDetail = { in test_esys_create_password_auth()
240 .parameters.rsaDetail = { in test_esys_create_password_auth()
Desys-save-and-load-context.int.c139 .parameters.rsaDetail = { in test_esys_save_and_load_context()
245 .parameters.rsaDetail = { in test_esys_save_and_load_context()
Desys-make-credential.int.c159 .parameters.rsaDetail = { in test_esys_make_credential()
250 .parameters.rsaDetail = { in test_esys_make_credential()
Desys-tr-getTpmHandle-key.int.c75 .parameters.rsaDetail = { in test_esys_tr_toTpmPublic_key()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DRsaKeyCache.c135 TPM_KEY_BITS keySave = publicArea->parameters.rsaDetail.keyBits; in InitializeKeyCache()
141 publicArea->parameters.rsaDetail.keyBits in InitializeKeyCache()
150 publicArea->parameters.rsaDetail.keyBits = keySave; in InitializeKeyCache()
237 int keyBits = publicArea->parameters.rsaDetail.keyBits; in GetCachedRsaKey()
/external/tpm2-tss/test/helper/
Dtpm_getek.c52 .parameters.rsaDetail = { in main()
131 if (out_public.publicArea.parameters.rsaDetail.exponent == 0) in main()
134 exp = out_public.publicArea.parameters.rsaDetail.exponent; in main()
/external/tpm2-tss/test/unit/
DTPM2B-marshal.c396 pub->parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in tpm2b_public_rsa_marshal_success()
397 pub->parameters.rsaDetail.symmetric.keyBits.aes = 128; in tpm2b_public_rsa_marshal_success()
398 pub->parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CBC; in tpm2b_public_rsa_marshal_success()
418 pub->parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in tpm2b_public_rsa_unique_size_marshal_success()
419 pub->parameters.rsaDetail.symmetric.keyBits.aes = 128; in tpm2b_public_rsa_unique_size_marshal_success()
420 pub->parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CBC; in tpm2b_public_rsa_unique_size_marshal_success()
DTPMT-marshal.c59 pub.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in tpmt_marshal_success()
60 pub.parameters.rsaDetail.symmetric.keyBits.aes = 128; in tpmt_marshal_success()
61 pub.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CBC; in tpmt_marshal_success()
67 assert_int_equal (ptr5->rsaDetail.symmetric.algorithm, HOST_TO_BE_16(TPM2_ALG_AES)); in tpmt_marshal_success()
68 assert_int_equal (ptr5->rsaDetail.symmetric.keyBits.aes, HOST_TO_BE_16(128)); in tpmt_marshal_success()
69 assert_int_equal (ptr5->rsaDetail.symmetric.mode.aes, HOST_TO_BE_16(TPM2_ALG_CBC)); in tpmt_marshal_success()
Desys-crypto.c172 .parameters.rsaDetail = { in check_pk_encrypt()
198 inPublicRSA.publicArea.parameters.rsaDetail.scheme.scheme = 0; in check_pk_encrypt()
/external/tpm2-tss/src/tss2-sys/
Dsysapi_util.c350 if (IsAlgorithmWeak(tmpl->type, tmpl->parameters.rsaDetail.keyBits) || in ValidatePublicTemplate()
351 IsAlgorithmWeak(tmpl->parameters.rsaDetail.symmetric.algorithm, in ValidatePublicTemplate()
352 tmpl->parameters.rsaDetail.symmetric.keyBits.sym)) in ValidatePublicTemplate()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/X509/
DX509_RSA.c192 UINT32 exp = object->publicArea.parameters.rsaDetail.exponent; in X509AddPublicRSA()
/external/tpm2-tss/src/tss2-esys/
Desys_crypto_bssl.c567 switch (pub_tpm_key->publicArea.parameters.rsaDetail.scheme.scheme) { in iesys_cryptbssl_pk_encrypt()
582 if (pub_tpm_key->publicArea.parameters.rsaDetail.exponent == 0) in iesys_cryptbssl_pk_encrypt()
585 exp = pub_tpm_key->publicArea.parameters.rsaDetail.exponent; in iesys_cryptbssl_pk_encrypt()
597 pub_tpm_key->publicArea.parameters.rsaDetail.keyBits, in iesys_cryptbssl_pk_encrypt()
/external/tpm2-tss/src/tss2-fapi/
Dfapi_crypto.c94 .parameters.rsaDetail = {
403 if (tpmPublicKey->publicArea.parameters.rsaDetail.exponent == 0) in ossl_rsa_pub_from_tpm()
406 exp = tpmPublicKey->publicArea.parameters.rsaDetail.exponent; in ossl_rsa_pub_from_tpm()
710 if (tpmPublic->parameters.rsaDetail.scheme.scheme == TPM2_ALG_RSAPSS) { in ifapi_der_sig_to_tpm()
716 } else if (tpmPublic->parameters.rsaDetail.scheme.scheme == TPM2_ALG_RSASSA) { in ifapi_der_sig_to_tpm()
931 tpmPublic->publicArea.parameters.rsaDetail.keyBits = rsaKeySize * 8; in get_rsa_tpm2b_public_from_evp()
932 tpmPublic->publicArea.parameters.rsaDetail.exponent = BN_get_word(e); in get_rsa_tpm2b_public_from_evp()

123