/aosp12/system/keymaster/km_openssl/ |
H A D | ecies_kem.cpp | 28 LOG_E("%s", "EciesKem: no curve specified"); in EciesKem() 40 LOG_E("EciesKem: curve %d is unsupported", curve_); in EciesKem() 47 LOG_E("EciesKem: No KDF specified", 0); in EciesKem() 56 LOG_E("Kdf %d is unsupported", kdf); in EciesKem() 66 LOG_E("%s", "EciesKem: no key length specified"); in EciesKem() 97 LOG_E("EciesKem: Can't obtain public value", 0); in Encrypt() 115 LOG_E("EciesKem: KDF failed, can't derived keys", 0); in Encrypt() 121 LOG_E("EciesKem: KDF failed, can't derived keys", 0); in Encrypt() 152 LOG_E("%s", "EciesKem: Can't obtain public value"); in Decrypt() 170 LOG_E("%s", "EciesKem: KDF failed, can't derived keys"); in Decrypt() [all …]
|
H A D | ecdh_operation.cpp | 51 LOG_E("Error decoding key", 0); in Finish() 58 LOG_E("Memory allocation failed", 0); in Finish() 62 LOG_E("Context initialization failed", 0); in Finish() 66 LOG_E("Error setting peer key", 0); in Finish() 71 LOG_E("Error deriving key", 0); in Finish() 75 LOG_E("Error reserving data in output buffer", 0); in Finish() 79 LOG_E("Error deriving key", 0); in Finish()
|
H A D | rsa_key_factory.cpp | 62 LOG_E("No public exponent specified for RSA key generation", 0); in GenerateKey() 66 LOG_E("Invalid public exponent specified for RSA key generation", 0); in GenerateKey() 72 LOG_E("No key size specified for RSA key generation", 0); in GenerateKey() 76 LOG_E("Invalid key size of %u bits specified for RSA key generation", key_size); in GenerateKey() 190 LOG_E("Imported public exponent (%u) does not match specified public exponent (%u)", in UpdateImportKeyDescription() 199 LOG_E("Imported key size (%u bits) does not match specified key size (%u bits)", in UpdateImportKeyDescription()
|
H A D | block_cipher_operation.cpp | 60 LOG_E("AES GCM key must have KM_TAG_MIN_MAC_LENGTH", 0); in GetAndValidateGcmTagLength() 83 LOG_E("%d block modes specified in begin params", begin_params.GetTagCount(TAG_BLOCK_MODE)); in CreateOperation() 87 LOG_E("Block mode %d not supported", block_mode); in CreateOperation() 91 LOG_E("Block mode %d was specified, but not authorized by key", block_mode); in CreateOperation() 109 LOG_E("Mode does not support padding", 0); in CreateOperation() 203 LOG_E("Error encrypting final block: %s", buf); in Finish() 262 LOG_E("No IV provided", 0); in GetIv() 267 LOG_E("Expected %d-byte IV for operation, but got %d bytes", block_size_bytes(), in GetIv() 273 LOG_E("Expected %d-byte nonce for GCM operation, but got %d bytes", GCM_NONCE_SIZE, in GetIv()
|
H A D | hmac_operation.cpp | 39 LOG_E("HMAC key must have KM_TAG_MIN_MAC_LENGTH", 0); in CreateOperation() 47 LOG_E("MAC length may not be specified for verify", 0); in CreateOperation() 52 LOG_E("MAC length must be a multiple of 8", mac_length_bits); in CreateOperation() 65 LOG_E("%d digests found in HMAC key authorizations; must be exactly 1", in CreateOperation()
|
H A D | nist_curve_key_exchange.cpp | 54 LOG_E("Not a NIST curve: %d", curve); in GenerateKeyExchange() 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()
|
H A D | hmac_key.cpp | 50 LOG_E("HMAC key must have KM_TAG_MIN_MAC_LENGTH", 0); in LoadKey() 68 LOG_E("%d digests specified for HMAC key", key_description.GetTagCount(TAG_DIGEST)); in validate_algorithm_specific_new_key_params()
|
H A D | rsa_operation.cpp | 142 LOG_E("%d MGF digests specified in begin params and SHA1 not authorized", in GetAndValidateMgfDigest() 148 LOG_E("MGF Digest %d not supported", *digest); in GetAndValidateMgfDigest() 151 LOG_E("MGF Digest %d was specified, but not authorized by key", *digest); in GetAndValidateMgfDigest() 199 LOG_E("Input too long: cannot operate on %u bytes of data with %u-byte RSA key", in StoreData() 263 LOG_E("Input too long: %d-byte digest cannot be used with %d-byte RSA key in PSS " in GetOpensslPadding() 356 LOG_E("Input too long: cannot sign %u-byte message with PKCS1 padding with %u-bit key", in SignUndigested() 441 LOG_E("Input too long: cannot verify %u-byte message with PKCS1 padding && %u-bit key", in VerifyUndigested()
|
H A D | symmetric_key.cpp | 56 LOG_E("Error generating %d bit symmetric key", key_size_bits); in GenerateKey() 90 LOG_E("Expected %d-bit key data but got %d-bit key", key_bits, in ImportKey()
|
H A D | openssl_err.cpp | 85 LOG_E("ASN.1 parsing error %d", reason); in TranslateLastOpenSslError() 90 LOG_E("Openssl error %d, %d", ERR_GET_LIB(error), reason); in TranslateLastOpenSslError()
|
/aosp12/system/keymaster/android_keymaster/ |
H A D | remote_provisioning_utils.cpp | 72 LOG_E("Error parsing EEK chain: %s", errMsg.c_str()); in validateAndExtractEekPubAndId() 91 LOG_E("%s", parsedPubKey.moveMessage().c_str()); in validateAndExtractEekPubAndId() 111 LOG_E("Unrecognized root of EEK chain", 0); in validateAndExtractEekPubAndId() 136 LOG_E("Invalid COSE_Mac0 structure", 0); in validateAndExtractPubkeys() 145 LOG_E("Invalid COSE_Mac0 contents", 0); in validateAndExtractPubkeys() 156 LOG_E("Unsupported Mac0 algorithm", 0); in validateAndExtractPubkeys() 162 LOG_E("%s", pubKey.moveMessage().c_str()); in validateAndExtractPubkeys() 168 LOG_E("Production key in test request", 0); in validateAndExtractPubkeys() 171 LOG_E("Test key in production request", 0); in validateAndExtractPubkeys() 177 LOG_E("%s", macTag.moveMessage().c_str()); in validateAndExtractPubkeys() [all …]
|
H A D | operation.cpp | 91 LOG_E("%d padding modes specified in begin params", begin_params.GetTagCount(TAG_PADDING)); in GetAndValidatePadding() 94 LOG_E("Padding mode %d not supported", *padding); in GetAndValidatePadding() 102 LOG_E("Padding mode %d was specified, but not authorized by key", *padding); in GetAndValidatePadding() 128 LOG_E("%d digests specified in begin params and NONE not authorized", in GetAndValidateDigest() 133 LOG_E("Digest %d not supported", *digest); in GetAndValidateDigest() 141 LOG_E("Digest %d was specified, but not authorized by key", *digest); in GetAndValidateDigest()
|
H A D | keymaster_enforcement.cpp | 398 LOG_E("Auth required but no matching auth token found", 0); in AuthorizeBegin() 413 LOG_E("Rate-limited keys table full. Entries will time out.", 0); in AuthorizeBegin() 425 LOG_E("Usage count-limited keys table full, until reboot.", 0); in AuthorizeBegin() 454 LOG_E("Authentication required, but auth token not provided", 0); in GetAndValidateAuthToken() 459 LOG_E("Bug: Auth token is the wrong size (%d expected, %d found)", sizeof(hw_auth_token_t), in GetAndValidateAuthToken() 466 LOG_E("Bug: Auth token is the version %d (or is not an auth token). Expected %d", in GetAndValidateAuthToken() 472 LOG_E("Auth token signature invalid", 0); in GetAndValidateAuthToken() 495 LOG_E("Auth token has the challenge %llu, need %llu", auth_token->challenge, op_handle); in AuthTokenMatches() 506 LOG_E("Auth required but no auth type found", 0); in AuthTokenMatches() 515 LOG_E("Key requires match of auth type mask 0%uo, but token contained 0%uo", in AuthTokenMatches() [all …]
|
H A D | android_keymaster.cpp | 412 LOG_E("Couldn't get a pointer to the remote provisioning context, returned null.", 0); in GenerateCsr() 421 LOG_E("Failed to validate and extract the public keys for the CSR", 0); in GenerateCsr() 428 LOG_E("Failed to generate a random mac key.", 0); in GenerateCsr() 440 LOG_E("Failed to generate COSE_Mac0 over the public keys to sign.", 0); in GenerateCsr() 454 LOG_E("The BCC is not an array.", 0); in GenerateCsr() 473 LOG_E("Failed to construct COSE_Sign1 over the ephemeral mac key.", 0); in GenerateCsr() 484 LOG_E("Failed to validate and extract the endpoint encryption key.", 0); in GenerateCsr() 492 LOG_E("Failed to derive the session key.", 0); in GenerateCsr() 499 LOG_E("Failed to generate a random nonce.", 0); in GenerateCsr() 512 LOG_E("Failed to construct a COSE_Encrypt ProtectedData structure", 0); in GenerateCsr() [all …]
|
H A D | authorization_set.cpp | 428 LOG_E("Malformed data found in AuthorizationSet deserialization", 0); in DeserializeIndirectData() 441 LOG_E("Malformed data found in AuthorizationSet deserialization", 0); in DeserializeElementsData() 462 LOG_E("Malformed data found in AuthorizationSet deserialization", 0); in DeserializeElementsData() 473 LOG_E("Malformed data found in AuthorizationSet deserialization", 0); in DeserializeElementsData() 482 LOG_E("Malformed data found in AuthorizationSet deserialization", 0); in DeserializeElementsData() 498 LOG_E("Malformed data found in AuthorizationSet deserialization", 0); in Deserialize()
|
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/ |
H A D | HidRawDevice.cpp | 40 LOG_E << "Error in open device node: " << errno << " (" << ::strerror(errno) << ")" in HidRawDevice() 47 LOG_E << "Error obtaining HidRaw device information" << LOG_ENDL; in HidRawDevice() 52 LOG_E << "Cannot parse hid descriptor" << LOG_ENDL; in HidRawDevice() 193 LOG_E << "HidRawDevice::getFeature: unknown feature " << id << LOG_ENDL; in getFeature() 206 LOG_E << "HidRawDevice::getFeature: feature " << static_cast<int>(id) in getFeature() 212 LOG_E << "HidRawDevice::getFeature: get feature " << static_cast<int>(id) in getFeature() 217 LOG_E << "HidRawDevice::getFeature: get feature " << static_cast<int>(id) in getFeature() 232 LOG_E << "HidRawDevice::setFeature: Unknown feature " << id << LOG_ENDL; in setFeature() 266 LOG_E << "HidRawDevice::sendReport: unknown output " << id << LOG_ENDL; in sendReport() 305 LOG_E << "HidRawDevice::receiveReport: read returns " << res in receiveReport() [all …]
|
H A D | HidRawSensor.cpp | 51 LOG_E << "populate feature from feature report failed" << LOG_ENDL; in HidRawSensor() 56 LOG_E << "finding sensor control usage failed" << LOG_ENDL; in HidRawSensor() 110 LOG_E << "Cannot find accuracy field in usage " in HidRawSensor() 115 LOG_E << "Accuracy field must align to byte" << LOG_ENDL; in HidRawSensor() 139 LOG_E << "Invalid android custom sensor" << LOG_ENDL; in HidRawSensor() 250 LOG_E << "Quaternion usage min must <= max" << LOG_ENDL; in processQuaternionUsage() 304 LOG_E << "Three axis sensor does not find all 3 axis" << LOG_ENDL; in processTriAxisUsage() 312 LOG_E << "All 3 axis should be in the same report" << LOG_ENDL; in processTriAxisUsage() 324 LOG_E << "All 3 axis should have same resolution" << LOG_ENDL; in processTriAxisUsage() 339 LOG_E << "Specified unit for usage is not supported" << LOG_ENDL; in processTriAxisUsage() [all …]
|
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
H A D | HidParserExample.cpp | 39 LOG_E << name << " parsing error!" << LOG_ENDL; in doParse() 62 LOG_E << name << " parsing error!" << LOG_ENDL; in doParseAndFilter() 88 LOG_E << name << " parsing error!" << LOG_ENDL; in doDigest() 110 LOG_E << "Error: need param" << LOG_ENDL; in main() 122 LOG_E << "Error: unknown test name" << LOG_ENDL; in main()
|
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/test/ |
H A D | HidRawDeviceTest.cpp | 50 LOG_E << "invalid device" << LOG_ENDL; in test() 62 LOG_E << "cannot get feature " << featureId << LOG_ENDL; in test() 76 LOG_E << "Sensor is not valid " << LOG_ENDL; in test() 103 LOG_E << "Receive report error" << LOG_ENDL; in test() 120 LOG_E << "Usage: " << argv[0] << " hidraw-dev-path" << LOG_ENDL; in main()
|
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/ |
H A D | HidGlobal.cpp | 26 LOG_E << "HidGlobal::append cannot process tag that is not global, " << i << LOG_ENDL; in append() 31 LOG_E << "PUSH and POP should be handled in HidGlobalStack, " << i << LOG_ENDL; in append() 84 LOG_E << "unknown global tag, " << i << LOG_ENDL; in append() 89 LOG_E << "Cannot get signed / unsigned data at " << i << LOG_ENDL; in append()
|
H A D | HidLocal.cpp | 71 LOG_E << "usage min not set when saw usage max " << i << LOG_ENDL; in append() 92 LOG_E << "string min not set when saw string max " << i << LOG_ENDL; in append() 109 LOG_E << "unknown local tag, " << i << LOG_ENDL; in append() 113 LOG_E << "Cannot get unsigned data at " << i << LOG_ENDL; in append()
|
H A D | HidParser.cpp | 50 LOG_E << "HidParser found illegal HidItem: " << i << LOG_ENDL; in parse() 71 LOG_E << "Cannot get collection type at offset " << i.offset << LOG_ENDL; in processMainTag() 85 LOG_E << "unmatched END_COLLECTION at " << i.offset << LOG_ENDL; in processMainTag() 95 LOG_E << "Cannot get report flag at offset " << i.offset << LOG_ENDL; in processMainTag() 105 LOG_E << "Report defined at " << i.offset in processMainTag() 111 LOG_E << "Report defined at " << i.offset in processMainTag() 124 LOG_E << "unknown main tag, " << i << LOG_ENDL; in processMainTag()
|
H A D | HidLog.h | 22 #define LOG_E LOG(ERROR) macro 30 #define LOG_E (std::cerr << "E: ") macro
|
/aosp12/system/keymaster/key_blob_utils/ |
H A D | ocb_utils.cpp | 136 LOG_E("Error %d while encrypting key", ae_err); in OcbEncryptKey() 171 LOG_E("Failed to validate authentication tag during key decryption", 0); in OcbDecryptKey() 174 LOG_E("Failed to decrypt key, error: %d", ae_err); in OcbDecryptKey()
|
/aosp12/system/keymaster/legacy_support/ |
H A D | ecdsa_keymaster1_operation.cpp | 62 LOG_E("Could not get extended key data... not a Keymaster1Engine key?", 0); in PrepareFinish() 110 LOG_E( in CreateOperation()
|