/system/keymaster/km_openssl/ |
D | certificate_utils.cpp | 57 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 …]
|
D | ckdf.cpp | 67 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()
|
D | openssl_utils.cpp | 86 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 …]
|
D | ecdh_operation.cpp | 52 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()
|
D | ecdsa_operation.cpp | 118 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()
|
D | attestation_utils.cpp | 55 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 …]
|
D | asymmetric_key.cpp | 39 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()
|
D | wrapped_key.cpp | 55 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()
|
D | rsa_operation.cpp | 214 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 …]
|
D | asymmetric_key_factory.cpp | 55 if (!pkey) return TranslateLastOpenSslError(); in LoadKey() 59 error = TranslateLastOpenSslError(); in LoadKey()
|
D | nist_curve_key_exchange.cpp | 85 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()
|
D | block_cipher_operation.cpp | 204 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()
|
D | soft_keymaster_enforcement.cpp | 105 return TranslateLastOpenSslError(); in hmacSha256() 111 return TranslateLastOpenSslError(); in hmacSha256() 116 return TranslateLastOpenSslError(); in hmacSha256()
|
D | rsa_key_factory.cpp | 89 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()
|
D | hmac_operation.cpp | 158 return TranslateLastOpenSslError(); in Update() 175 if (!HMAC_Final(&ctx_, digest, &digest_len)) return TranslateLastOpenSslError(); in Finish()
|
D | ec_key_factory.cpp | 118 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()
|
D | attestation_record.cpp | 728 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 …]
|
D | openssl_err.cpp | 43 keymaster_error_t TranslateLastOpenSslError(bool log_message) { in TranslateLastOpenSslError() function
|
/system/keymaster/legacy_support/ |
D | keymaster1_engine.cpp | 134 *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/ |
D | openssl_err.h | 28 keymaster_error_t TranslateLastOpenSslError(bool log_message = true);
|
/system/keymaster/key_blob_utils/ |
D | integrity_assured_key_blob.cpp | 59 return TranslateLastOpenSslError(); in ComputeHmac() 67 return TranslateLastOpenSslError(); in ComputeHmac()
|
D | auth_encrypted_key_blob.cpp | 90 *error = TranslateLastOpenSslError(); in DeriveAesGcmKeyEncryptionKey() 107 *error = TranslateLastOpenSslError(); in DeriveAesGcmKeyEncryptionKey() 150 *error = TranslateLastOpenSslError(); in AesGcmEncryptKey() 187 *error = TranslateLastOpenSslError(); in AesGcmDecryptKey()
|
D | software_keyblobs.cpp | 120 if (!rsa) return TranslateLastOpenSslError(); in FakeKeyAuthorizations() 142 if (!ec_key.get()) return TranslateLastOpenSslError(); in FakeKeyAuthorizations()
|
D | ocb_utils.cpp | 98 return TranslateLastOpenSslError(); in InitializeKeyWrappingContext()
|