/external/tpm2-tss/test/integration/ |
D | sapi-asymmetric-encrypt-decrypt.int.c | 79 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()
|
D | sapi-create-loaded.int.c | 53 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()
|
D | sapi-command-cancel.int.c | 56 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()
|
D | sapi-policy-template.int.c | 89 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()
|
D | esys-rsa-encrypt-decrypt.int.c | 86 .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()
|
D | sapi-util.c | 68 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()
|
D | esys-create-fail.int.c | 129 .parameters.rsaDetail = { in test_esys_create_fail() 240 .parameters.rsaDetail = { in test_esys_create_fail()
|
D | esys-testparms.int.c | 37 .rsaDetail = { in test_esys_testparms()
|
D | esys-object-changeauth.int.c | 71 .parameters.rsaDetail = { in test_esys_object_changeauth() 168 .parameters.rsaDetail = { in test_esys_object_changeauth()
|
D | esys-evict-control-serialization.int.c | 92 .parameters.rsaDetail = { in test_esys_evict_control_serialization() 202 .parameters.rsaDetail = { in test_esys_evict_control_serialization()
|
D | esys-policy-password.int.c | 117 .parameters.rsaDetail = { in test_esys_policy_password() 239 .parameters.rsaDetail = { in test_esys_policy_password()
|
D | esys-create-policy-auth.int.c | 144 .parameters.rsaDetail = { in test_esys_create_policy_auth() 224 .parameters.rsaDetail = { in test_esys_create_policy_auth()
|
D | esys-create-password-auth.int.c | 134 .parameters.rsaDetail = { in test_esys_create_password_auth() 240 .parameters.rsaDetail = { in test_esys_create_password_auth()
|
D | esys-save-and-load-context.int.c | 139 .parameters.rsaDetail = { in test_esys_save_and_load_context() 245 .parameters.rsaDetail = { in test_esys_save_and_load_context()
|
D | esys-make-credential.int.c | 159 .parameters.rsaDetail = { in test_esys_make_credential() 250 .parameters.rsaDetail = { in test_esys_make_credential()
|
D | esys-tr-getTpmHandle-key.int.c | 75 .parameters.rsaDetail = { in test_esys_tr_toTpmPublic_key()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ |
D | RsaKeyCache.c | 135 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/ |
D | tpm_getek.c | 52 .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/ |
D | TPM2B-marshal.c | 396 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()
|
D | TPMT-marshal.c | 59 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()
|
D | esys-crypto.c | 172 .parameters.rsaDetail = { in check_pk_encrypt() 198 inPublicRSA.publicArea.parameters.rsaDetail.scheme.scheme = 0; in check_pk_encrypt()
|
/external/tpm2-tss/src/tss2-sys/ |
D | sysapi_util.c | 350 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/ |
D | X509_RSA.c | 192 UINT32 exp = object->publicArea.parameters.rsaDetail.exponent; in X509AddPublicRSA()
|
/external/tpm2-tss/src/tss2-esys/ |
D | esys_crypto_bssl.c | 567 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/ |
D | fapi_crypto.c | 94 .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()
|