Home
last modified time | relevance | path

Searched refs:TranslateLastOpenSslError (Results 1 – 24 of 24) sorted by relevance

/system/keymaster/km_openssl/
Dcertificate_utils.cpp57 return TranslateLastOpenSslError(); in fake_sign_cert()
69 return TranslateLastOpenSslError(); in make_name_from_str()
77 return TranslateLastOpenSslError(); in make_name_from_str()
89 return TranslateLastOpenSslError(); in make_name_from_der()
121 return TranslateLastOpenSslError(); in get_certificate_params()
186 return TranslateLastOpenSslError(); in make_key_usage_extension()
192 return TranslateLastOpenSslError(); in make_key_usage_extension()
199 return TranslateLastOpenSslError(); in make_key_usage_extension()
205 return TranslateLastOpenSslError(); in make_key_usage_extension()
212 return TranslateLastOpenSslError(); in make_key_usage_extension()
[all …]
Dckdf.cpp67 return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
80 return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
85 return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
90 if (!CMAC_Update(ctx.get(), &zero, sizeof(zero))) return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
96 return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
103 if (!CMAC_Update(ctx.get(), buf, sizeof(buf))) TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
107 if (!CMAC_Final(ctx.get(), output_pos, &out_len)) return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
111 if (!CMAC_Final(ctx.get(), cmac, &out_len)) return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
Dopenssl_utils.cpp86 if (pkcs8.get() == nullptr) return TranslateLastOpenSslError(true /* log_message */); in convert_pkcs8_blob_to_evp()
89 if (!pkey->get()) return TranslateLastOpenSslError(true /* log_message */); in convert_pkcs8_blob_to_evp()
112 if (key_data_size <= 0) return TranslateLastOpenSslError(); in EvpKeyToKeyMaterial()
133 if (!cert.get()) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
135 if (!pubKey.get()) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
137 if (!ecKey) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
139 if (!jacobian_coords) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
143 if (!ctx.get()) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
146 return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
150 return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
[all …]
Decdh_operation.cpp52 return TranslateLastOpenSslError(); in Finish()
59 return TranslateLastOpenSslError(); in Finish()
63 return TranslateLastOpenSslError(); in Finish()
67 return TranslateLastOpenSslError(); in Finish()
72 return TranslateLastOpenSslError(); in Finish()
80 return TranslateLastOpenSslError(); in Finish()
Decdsa_operation.cpp118 return TranslateLastOpenSslError(); in Begin()
129 return TranslateLastOpenSslError(); in Update()
146 if (!ecdsa.get()) return TranslateLastOpenSslError(); in Finish()
152 return TranslateLastOpenSslError(); in Finish()
156 return TranslateLastOpenSslError(); in Finish()
159 return TranslateLastOpenSslError(); in Finish()
179 return TranslateLastOpenSslError(); in Begin()
190 return TranslateLastOpenSslError(); in Update()
204 if (!ecdsa.get()) return TranslateLastOpenSslError(); in Finish()
210 return TranslateLastOpenSslError(); in Finish()
Dattestation_utils.cpp55 if (!oid.get()) return TranslateLastOpenSslError(); in build_attestation_extension()
66 return TranslateLastOpenSslError(); in build_attestation_extension()
72 return TranslateLastOpenSslError(); in build_attestation_extension()
86 return TranslateLastOpenSslError(); in build_eat_extension()
97 return TranslateLastOpenSslError(); in build_eat_extension()
103 return TranslateLastOpenSslError(); in build_eat_extension()
129 return TranslateLastOpenSslError(); in add_attestation_extension()
180 *error = TranslateLastOpenSslError(); in get_issuer_subject()
186 *error = TranslateLastOpenSslError(); in get_issuer_subject()
191 if (!retval) *error = TranslateLastOpenSslError(); in get_issuer_subject()
[all …]
Dasymmetric_key.cpp39 if (!InternalToEvp(pkey.get())) return TranslateLastOpenSslError(); in formatted_key_material()
42 if (key_data_length <= 0) return TranslateLastOpenSslError(); in formatted_key_material()
50 return TranslateLastOpenSslError(); in formatted_key_material()
Dwrapped_key.cpp55 return TranslateLastOpenSslError(); in build_wrapped_key()
65 return TranslateLastOpenSslError(); in build_wrapped_key()
74 return TranslateLastOpenSslError(); in build_wrapped_key()
94 if (!record.get()) return TranslateLastOpenSslError(); in parse_wrapped_key()
119 return TranslateLastOpenSslError(); in parse_wrapped_key()
126 return TranslateLastOpenSslError(); in parse_wrapped_key()
Drsa_operation.cpp214 return TranslateLastOpenSslError(); in SetRsaPaddingInEvpContext()
221 return TranslateLastOpenSslError(); in SetRsaPaddingInEvpContext()
285 return TranslateLastOpenSslError(); in Begin()
298 return TranslateLastOpenSslError(); in Update()
332 if (!rsa.get()) return TranslateLastOpenSslError(); in SignUndigested()
368 if (bytes_encrypted <= 0) return TranslateLastOpenSslError(); in SignUndigested()
376 return TranslateLastOpenSslError(); in SignDigested()
381 return TranslateLastOpenSslError(); in SignDigested()
396 return TranslateLastOpenSslError(); in Begin()
409 return TranslateLastOpenSslError(); in Update()
[all …]
Dasymmetric_key_factory.cpp55 if (!pkey) return TranslateLastOpenSslError(); in LoadKey()
59 error = TranslateLastOpenSslError(); in LoadKey()
Dnist_curve_key_exchange.cpp85 return TranslateLastOpenSslError(); in ExtractPublicKey()
107 LOG_E("Can't convert peer public value to point: %d", TranslateLastOpenSslError()); in CalculateSharedKey()
115 LOG_E("Can't compute ECDH shared key: %d", TranslateLastOpenSslError()); in CalculateSharedKey()
Dblock_cipher_operation.cpp204 return TranslateLastOpenSslError(); in Finish()
236 return TranslateLastOpenSslError(); in InitializeCipher()
335 *error = TranslateLastOpenSslError(); in ProcessBufferedAadBlock()
346 *error = TranslateLastOpenSslError(); in ProcessAadBlocks()
376 *error = TranslateLastOpenSslError(); in InternalUpdate()
436 return TranslateLastOpenSslError(); in Finish()
446 if (RAND_bytes(iv_.writable_data(), iv_.data_length) != 1) return TranslateLastOpenSslError(); in GenerateIv()
542 return TranslateLastOpenSslError(); in Finish()
Dsoft_keymaster_enforcement.cpp105 return TranslateLastOpenSslError(); in hmacSha256()
111 return TranslateLastOpenSslError(); in hmacSha256()
116 return TranslateLastOpenSslError(); in hmacSha256()
Drsa_key_factory.cpp89 return TranslateLastOpenSslError(); in GenerateKey()
91 if (EVP_PKEY_set1_RSA(pkey.get(), rsa_key.get()) != 1) return TranslateLastOpenSslError(); in GenerateKey()
183 if (!rsa_key.get()) return TranslateLastOpenSslError(); in UpdateImportKeyDescription()
Dhmac_operation.cpp158 return TranslateLastOpenSslError(); in Update()
175 if (!HMAC_Final(&ctx_, digest, &digest_len)) return TranslateLastOpenSslError(); in Finish()
Dec_key_factory.cpp118 return TranslateLastOpenSslError(); in GenerateKey()
121 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get()) != 1) return TranslateLastOpenSslError(); in GenerateKey()
208 if (!ec_key.get()) return TranslateLastOpenSslError(); in UpdateImportKeyDescription()
Dattestation_record.cpp728 return TranslateLastOpenSslError(); in build_auth_list()
749 return TranslateLastOpenSslError(); in build_auth_list()
753 return TranslateLastOpenSslError(); in build_auth_list()
783 return TranslateLastOpenSslError(); in build_auth_list()
808 return TranslateLastOpenSslError(); in build_auth_list()
991 return TranslateLastOpenSslError(); in build_attestation_record()
997 return TranslateLastOpenSslError(); in build_attestation_record()
1002 return TranslateLastOpenSslError(); in build_attestation_record()
1011 return TranslateLastOpenSslError(); in build_attestation_record()
1025 return TranslateLastOpenSslError(); in build_attestation_record()
[all …]
Dopenssl_err.cpp43 keymaster_error_t TranslateLastOpenSslError(bool log_message) { in TranslateLastOpenSslError() function
/system/keymaster/legacy_support/
Dkeymaster1_engine.cpp134 *error = TranslateLastOpenSslError(); in BuildRsaKey()
140 *error = TranslateLastOpenSslError(); in BuildRsaKey()
152 *error = TranslateLastOpenSslError(); in BuildRsaKey()
159 *error = TranslateLastOpenSslError(); in BuildRsaKey()
173 *error = TranslateLastOpenSslError(); in BuildEcKey()
179 *error = TranslateLastOpenSslError(); in BuildEcKey()
191 *error = TranslateLastOpenSslError(); in BuildEcKey()
197 *error = TranslateLastOpenSslError(); in BuildEcKey()
357 *error = TranslateLastOpenSslError(); in GetKeymaster1PublicKey()
/system/keymaster/include/keymaster/km_openssl/
Dopenssl_err.h28 keymaster_error_t TranslateLastOpenSslError(bool log_message = true);
/system/keymaster/key_blob_utils/
Dintegrity_assured_key_blob.cpp59 return TranslateLastOpenSslError(); in ComputeHmac()
67 return TranslateLastOpenSslError(); in ComputeHmac()
Dauth_encrypted_key_blob.cpp90 *error = TranslateLastOpenSslError(); in DeriveAesGcmKeyEncryptionKey()
107 *error = TranslateLastOpenSslError(); in DeriveAesGcmKeyEncryptionKey()
150 *error = TranslateLastOpenSslError(); in AesGcmEncryptKey()
187 *error = TranslateLastOpenSslError(); in AesGcmDecryptKey()
Dsoftware_keyblobs.cpp120 if (!rsa) return TranslateLastOpenSslError(); in FakeKeyAuthorizations()
142 if (!ec_key.get()) return TranslateLastOpenSslError(); in FakeKeyAuthorizations()
Docb_utils.cpp98 return TranslateLastOpenSslError(); in InitializeKeyWrappingContext()