• Home
  • Raw
  • Download

Lines Matching refs:ERROR

133         LOG(ERROR) << "Size of data cannot be odd";  in decodeHex()
142 LOG(ERROR) << "Invalid hex digit at position " << n; in decodeHex()
180 LOG(ERROR) << "Memory allocation failed"; in generateP256Key()
186 LOG(ERROR) << "Error generating key"; in generateP256Key()
191 LOG(ERROR) << "Error getting private key"; in generateP256Key()
201 LOG(ERROR) << "Error generating public key encoding"; in derEncodeKeyPair()
227 LOG(ERROR) << "Cannot create attestation subject"; in signAttestationCertificate()
286 LOG(ERROR) << "Error loading attestation key: " << error; in signAttestationCertificate()
301 LOG(ERROR) << "Error generating attestation from EVP key: " << error; in signAttestationCertificate()
317 LOG(ERROR) << "Error parsing " << numDigits << " digits " in parseDigits()
340 LOG(ERROR) << "Unsupported ASN1_TIME type " << asn1Time->type; in parseAsn1Time()
351 LOG(ERROR) << "Expected Z in string '" << timeStr << "' at offset " << (s - timeStr); in parseAsn1Time()
357 LOG(ERROR) << "Error converting broken-down time to time_t"; in parseAsn1Time()
367 LOG(ERROR) << "Error parsing certificate"; in getCertificateExpiryAsMillis()
373 LOG(ERROR) << "Error getting notAfter from batch certificate"; in getCertificateExpiryAsMillis()
395 LOG(ERROR) << "Error getting attestation chain " << error; in createAttestation()
400 LOG(ERROR) << "Expected at least one entry in attestation chain"; in createAttestation()
408 LOG(ERROR) << "Error getting expiration time for batch cert"; in createAttestation()
425 LOG(ERROR) << "RAND_bytes: failed getting " << numBytes << " random"; in getRandom()
436 LOG(ERROR) << "encryptedData too small"; in decryptAes128Gcm()
448 LOG(ERROR) << "EVP_CIPHER_CTX_new: failed"; in decryptAes128Gcm()
453 LOG(ERROR) << "EVP_DecryptInit_ex: failed"; in decryptAes128Gcm()
458 LOG(ERROR) << "EVP_CIPHER_CTX_ctrl: failed setting nonce length"; in decryptAes128Gcm()
463 LOG(ERROR) << "EVP_DecryptInit_ex: failed"; in decryptAes128Gcm()
472 LOG(ERROR) << "EVP_DecryptUpdate: failed for additionalAuthenticatedData"; in decryptAes128Gcm()
476 LOG(ERROR) << "EVP_DecryptUpdate: Unexpected outl=" << numWritten << " (expected " in decryptAes128Gcm()
484 LOG(ERROR) << "EVP_DecryptUpdate: failed"; in decryptAes128Gcm()
488 LOG(ERROR) << "EVP_DecryptUpdate: Unexpected outl=" << numWritten << " (expected " in decryptAes128Gcm()
494 LOG(ERROR) << "EVP_CIPHER_CTX_ctrl: failed setting expected tag"; in decryptAes128Gcm()
501 LOG(ERROR) << "EVP_DecryptFinal_ex: failed"; in decryptAes128Gcm()
505 LOG(ERROR) << "EVP_DecryptFinal_ex: Unexpected non-zero outl=" << numWritten; in decryptAes128Gcm()
516 LOG(ERROR) << "key is not kAes128GcmKeySize bytes"; in encryptAes128Gcm()
520 LOG(ERROR) << "nonce is not kAesGcmIvSize bytes"; in encryptAes128Gcm()
535 LOG(ERROR) << "EVP_CIPHER_CTX_new: failed"; in encryptAes128Gcm()
540 LOG(ERROR) << "EVP_EncryptInit_ex: failed"; in encryptAes128Gcm()
545 LOG(ERROR) << "EVP_CIPHER_CTX_ctrl: failed setting nonce length"; in encryptAes128Gcm()
551 LOG(ERROR) << "EVP_EncryptInit_ex: failed"; in encryptAes128Gcm()
560 LOG(ERROR) << "EVP_EncryptUpdate: failed for additionalAuthenticatedData"; in encryptAes128Gcm()
564 LOG(ERROR) << "EVP_EncryptUpdate: Unexpected outl=" << numWritten << " (expected " in encryptAes128Gcm()
573 LOG(ERROR) << "EVP_EncryptUpdate: failed"; in encryptAes128Gcm()
577 LOG(ERROR) << "EVP_EncryptUpdate: Unexpected outl=" << numWritten << " (expected " in encryptAes128Gcm()
584 LOG(ERROR) << "EVP_EncryptFinal_ex: failed"; in encryptAes128Gcm()
588 LOG(ERROR) << "EVP_EncryptFinal_ex: Unexpected non-zero outl=" << numWritten; in encryptAes128Gcm()
593 LOG(ERROR) << "EVP_CIPHER_CTX_ctrl: failed getting tag"; in encryptAes128Gcm()
618 LOG(ERROR) << "Error parsing X509 certificate"; in certificateChainSplit()
636 LOG(ERROR) << "Error parsing X509 certificate"; in parseX509Certificates()
649 LOG(ERROR) << "Error parsing X509 certificate"; in certificateSignedByPublicKey()
657 LOG(ERROR) << "Error decoding publicKey"; in certificateSignedByPublicKey()
663 LOG(ERROR) << "Memory allocation failed"; in certificateSignedByPublicKey()
667 LOG(ERROR) << "Error setting group"; in certificateSignedByPublicKey()
671 LOG(ERROR) << "Error setting point"; in certificateSignedByPublicKey()
675 LOG(ERROR) << "Error setting key"; in certificateSignedByPublicKey()
696 LOG(ERROR) << "Error parsing X509 certificates"; in certificateChainValidate()
709 LOG(ERROR) << "Error validating cert at index " << n - 1 in certificateChainValidate()
723 LOG(ERROR) << "Error decoding DER encoded signature"; in checkEcDsaSignature()
731 LOG(ERROR) << "Error decoding publicKey"; in checkEcDsaSignature()
737 LOG(ERROR) << "Memory allocation failed"; in checkEcDsaSignature()
741 LOG(ERROR) << "Error setting group"; in checkEcDsaSignature()
745 LOG(ERROR) << "Error setting point"; in checkEcDsaSignature()
749 LOG(ERROR) << "Error setting key"; in checkEcDsaSignature()
755 LOG(ERROR) << "Error verifying signature (rc=" << rc << ")"; in checkEcDsaSignature()
776 LOG(ERROR) << "Error creating BIGNUM"; in signEcDsaDigest()
782 LOG(ERROR) << "Error setting private key from BIGNUM"; in signEcDsaDigest()
788 LOG(ERROR) << "Error signing digest"; in signEcDsaDigest()
808 LOG(ERROR) << "Error initializing HMAC_CTX"; in hmacSha256()
812 LOG(ERROR) << "Error updating HMAC_CTX"; in hmacSha256()
819 LOG(ERROR) << "Error finalizing HMAC_CTX"; in hmacSha256()
823 LOG(ERROR) << "Expected 32 bytes from HMAC_Final, got " << size; in hmacSha256()
837 LOG(ERROR) << "Error create attestation from key and challenge"; in createEcKeyPairAndAttestation()
866 LOG(ERROR) << "Error getting expiration time for attestation cert"; in createEcKeyPairWithAttestationKey()
873 LOG(ERROR) << "Error error extracting issuer name from the given certificate chain"; in createEcKeyPairWithAttestationKey()
881 LOG(ERROR) << "Error signing attestation certificate"; in createEcKeyPairWithAttestationKey()
885 LOG(ERROR) << "Error create attestation from key and challenge"; in createEcKeyPairWithAttestationKey()
889 LOG(ERROR) << "Expected exactly one attestation cert, got " << attestationCertChain->size(); in createEcKeyPairWithAttestationKey()
908 LOG(ERROR) << "Error decoding publicKey"; in createAttestationForEcPublicKey()
914 LOG(ERROR) << "Memory allocation failed"; in createAttestationForEcPublicKey()
918 LOG(ERROR) << "Error setting group"; in createAttestationForEcPublicKey()
922 LOG(ERROR) << "Error setting point"; in createAttestationForEcPublicKey()
926 LOG(ERROR) << "Error setting key"; in createAttestationForEcPublicKey()
933 LOG(ERROR) << "Error create attestation from key and challenge"; in createAttestationForEcPublicKey()
944 LOG(ERROR) << "Memory allocation failed"; in createEcKeyPair()
950 LOG(ERROR) << "Error creating EC group by curve name"; in createEcKeyPair()
956 LOG(ERROR) << "Error generating key"; in createEcKeyPair()
961 LOG(ERROR) << "Error getting private key"; in createEcKeyPair()
967 LOG(ERROR) << "Error generating public key encoding"; in createEcKeyPair()
981 LOG(ERROR) << "Error parsing keyPair"; in ecKeyPairGetPublicKey()
987 LOG(ERROR) << "Failed getting EC key"; in ecKeyPairGetPublicKey()
996 LOG(ERROR) << "Error generating public key encoding"; in ecKeyPairGetPublicKey()
1011 LOG(ERROR) << "Error parsing keyPair"; in ecKeyPairGetPrivateKey()
1017 LOG(ERROR) << "Failed getting EC key"; in ecKeyPairGetPrivateKey()
1023 LOG(ERROR) << "Error getting bignum from private key"; in ecKeyPairGetPrivateKey()
1032 LOG(ERROR) << "Size is " << numBytes << ", expected this to be 32 or less"; in ecKeyPairGetPrivateKey()
1046 LOG(ERROR) << "Error creating BIGNUM"; in ecPrivateKeyToKeyPair()
1052 LOG(ERROR) << "Error setting private key from BIGNUM"; in ecPrivateKeyToKeyPair()
1058 LOG(ERROR) << "Memory allocation failed"; in ecPrivateKeyToKeyPair()
1063 LOG(ERROR) << "Error getting private key"; in ecPrivateKeyToKeyPair()
1069 LOG(ERROR) << "Error generating public key encoding"; in ecPrivateKeyToKeyPair()
1086 LOG(ERROR) << "Error parsing keyPair"; in ecKeyPairGetPkcs12()
1092 LOG(ERROR) << "Error creating X509 certificate"; in ecKeyPairGetPkcs12()
1097 LOG(ERROR) << "Error setting version to 3"; in ecKeyPairGetPkcs12()
1102 LOG(ERROR) << "Error setting public key"; in ecKeyPairGetPkcs12()
1108 LOG(ERROR) << "Error parsing serial"; in ecKeyPairGetPkcs12()
1114 LOG(ERROR) << "Error setting serial"; in ecKeyPairGetPkcs12()
1124 LOG(ERROR) << "Error setting issuer"; in ecKeyPairGetPkcs12()
1134 LOG(ERROR) << "Error setting subject"; in ecKeyPairGetPkcs12()
1140 LOG(ERROR) << "Error setting notBefore"; in ecKeyPairGetPkcs12()
1146 LOG(ERROR) << "Error setting notAfter"; in ecKeyPairGetPkcs12()
1151 LOG(ERROR) << "Error signing X509 certificate"; in ecKeyPairGetPkcs12()
1175 LOG(ERROR) << "Error creating PKCS12, code " << errCode << ": " << buf; in ecKeyPairGetPkcs12()
1182 LOG(ERROR) << "Error encoding PKCS12"; in ecKeyPairGetPkcs12()
1202 LOG(ERROR) << "Error decoding publicKey"; in ecPublicKeyGenerateCertificate()
1208 LOG(ERROR) << "Memory allocation failed"; in ecPublicKeyGenerateCertificate()
1212 LOG(ERROR) << "Error setting group"; in ecPublicKeyGenerateCertificate()
1216 LOG(ERROR) << "Error setting point"; in ecPublicKeyGenerateCertificate()
1220 LOG(ERROR) << "Error setting key"; in ecPublicKeyGenerateCertificate()
1226 LOG(ERROR) << "Error creating BIGNUM for private key"; in ecPublicKeyGenerateCertificate()
1231 LOG(ERROR) << "Error setting private key from BIGNUM"; in ecPublicKeyGenerateCertificate()
1236 LOG(ERROR) << "Error setting private key"; in ecPublicKeyGenerateCertificate()
1250 LOG(ERROR) << "Error creating X509 certificate"; in ecPublicKeyGenerateCertificate()
1255 LOG(ERROR) << "Error setting version to 3"; in ecPublicKeyGenerateCertificate()
1260 LOG(ERROR) << "Error setting public key"; in ecPublicKeyGenerateCertificate()
1266 LOG(ERROR) << "Error parsing serial"; in ecPublicKeyGenerateCertificate()
1272 LOG(ERROR) << "Error setting serial"; in ecPublicKeyGenerateCertificate()
1282 LOG(ERROR) << "Error setting issuer"; in ecPublicKeyGenerateCertificate()
1292 LOG(ERROR) << "Error setting subject"; in ecPublicKeyGenerateCertificate()
1298 LOG(ERROR) << "Error setting notBefore"; in ecPublicKeyGenerateCertificate()
1304 LOG(ERROR) << "Error setting notAfter"; in ecPublicKeyGenerateCertificate()
1312 LOG(ERROR) << "Error setting OID"; in ecPublicKeyGenerateCertificate()
1317 LOG(ERROR) << "Error setting octet string for extension"; in ecPublicKeyGenerateCertificate()
1325 LOG(ERROR) << "Error setting extension"; in ecPublicKeyGenerateCertificate()
1329 LOG(ERROR) << "Error adding extension"; in ecPublicKeyGenerateCertificate()
1335 LOG(ERROR) << "Error signing X509 certificate"; in ecPublicKeyGenerateCertificate()
1342 LOG(ERROR) << "Error DER encoding X509 certificate"; in ecPublicKeyGenerateCertificate()
1359 LOG(ERROR) << "Error decoding publicKey"; in ecdh()
1365 LOG(ERROR) << "Memory allocation failed"; in ecdh()
1369 LOG(ERROR) << "Error setting group"; in ecdh()
1373 LOG(ERROR) << "Error setting point"; in ecdh()
1377 LOG(ERROR) << "Error setting key"; in ecdh()
1383 LOG(ERROR) << "Error creating BIGNUM for private key"; in ecdh()
1388 LOG(ERROR) << "Error setting private key from BIGNUM"; in ecdh()
1393 LOG(ERROR) << "Error setting private key"; in ecdh()
1399 LOG(ERROR) << "Error creating context"; in ecdh()
1404 LOG(ERROR) << "Error initializing context"; in ecdh()
1409 LOG(ERROR) << "Error setting peer"; in ecdh()
1416 LOG(ERROR) << "Error determing length of shared secret"; in ecdh()
1423 LOG(ERROR) << "Error deriving shared secret"; in ecdh()
1435 LOG(ERROR) << "Error deriving key"; in hkdf()
1450 LOG(ERROR) << "publicKey is not in the expected format"; in ecPublicKeyGetXandY()
1471 LOG(ERROR) << "No certificates in chain"; in certificateChainGetTopMostKey()
1477 LOG(ERROR) << "No public key"; in certificateChainGetTopMostKey()
1483 LOG(ERROR) << "Failed getting EC key"; in certificateChainGetTopMostKey()
1492 LOG(ERROR) << "Error generating public key encoding"; in certificateChainGetTopMostKey()
1509 LOG(ERROR) << "No certificates in chain"; in certificateGetExtension()
1516 LOG(ERROR) << "Error setting OID"; in certificateGetExtension()
1546 LOG(ERROR) << "No certificates in chain"; in certificateFindPublicKey()
1552 LOG(ERROR) << "No public key"; in certificateFindPublicKey()
1558 LOG(ERROR) << "Failed getting EC key"; in certificateFindPublicKey()
1567 LOG(ERROR) << "Error generating public key encoding"; in certificateFindPublicKey()
1581 LOG(ERROR) << "Error finding publicKey from x509Certificate"; in certificateFindPublicKey()
1595 LOG(ERROR) << "No certificates in chain"; in certificateTbsCertificate()
1602 LOG(ERROR) << "fail to extract tbsCertificate in x509Certificate"; in certificateTbsCertificate()
1615 LOG(ERROR) << "Error finding tbsCertificate from x509Certificate"; in certificateTbsCertificate()
1626 LOG(ERROR) << "Error parsing certificates"; in certificateGetValidity()
1630 LOG(ERROR) << "No certificates in chain"; in certificateGetValidity()
1637 LOG(ERROR) << "Error parsing notBefore"; in certificateGetValidity()
1642 LOG(ERROR) << "Error parsing notAfter"; in certificateGetValidity()
1655 LOG(ERROR) << "No certificates in chain"; in certificateFindSignature()
1672 LOG(ERROR) << "Error finding signature from x509Certificate"; in certificateFindSignature()
1726 LOG(ERROR) << "COSE signature length is " << ecdsaCoseSignature.size() << ", expected 64"; in ecdsaSignatureCoseToDer()
1732 LOG(ERROR) << "Error creating BIGNUM for r"; in ecdsaSignatureCoseToDer()
1738 LOG(ERROR) << "Error creating BIGNUM for s"; in ecdsaSignatureCoseToDer()
1760 LOG(ERROR) << "Error decoding DER signature"; in ecdsaSignatureDerToCose()
1767 LOG(ERROR) << "Error encoding r"; in ecdsaSignatureDerToCose()
1771 LOG(ERROR) << "Error encoding s"; in ecdsaSignatureDerToCose()
1781 LOG(ERROR) << "Invalid size for signatureToBeSigned, expected 64 got " in coseSignEcDsaWithSignature()
1794 LOG(ERROR) << "Error splitting certificate chain"; in coseSignEcDsaWithSignature()
1833 LOG(ERROR) << "data and detachedContent cannot both be non-empty"; in coseSignEcDsa()
1842 LOG(ERROR) << "Error splitting certificate chain"; in coseSignEcDsa()
1862 LOG(ERROR) << "Error signing toBeSigned data"; in coseSignEcDsa()
1867 LOG(ERROR) << "Error converting ECDSA signature from DER to COSE format"; in coseSignEcDsa()
1891 LOG(ERROR) << "Passed-in COSE_Sign1 is not valid CBOR: " << message; in coseCheckEcDsaSignature()
1896 LOG(ERROR) << "Value for COSE_Sign1 is not an array"; in coseCheckEcDsaSignature()
1900 LOG(ERROR) << "Value for COSE_Sign1 is not an array of size 4"; in coseCheckEcDsaSignature()
1907 LOG(ERROR) << "Value for encodedProtectedHeaders is not a bstr"; in coseCheckEcDsaSignature()
1914 LOG(ERROR) << "Value for unprotectedHeaders is not a map"; in coseCheckEcDsaSignature()
1922 LOG(ERROR) << "Value for payload is not null or a bstr"; in coseCheckEcDsaSignature()
1928 LOG(ERROR) << "Value for payload is not null or a bstr"; in coseCheckEcDsaSignature()
1935 LOG(ERROR) << "data and detachedContent cannot both be non-empty"; in coseCheckEcDsaSignature()
1941 LOG(ERROR) << "Value for signature is a bstr"; in coseCheckEcDsaSignature()
1948 LOG(ERROR) << "Error converting ECDSA signature from COSE to DER format"; in coseCheckEcDsaSignature()
1955 LOG(ERROR) << "Signature check failed"; in coseCheckEcDsaSignature()
1965 LOG(ERROR) << "Passed-in COSE_Sign1 is not valid CBOR: " << message; in coseSignGetSignature()
1970 LOG(ERROR) << "Value for COSE_Sign1 is not an array"; in coseSignGetSignature()
1974 LOG(ERROR) << "Value for COSE_Sign1 is not an array of size 4"; in coseSignGetSignature()
1981 LOG(ERROR) << "Value for signature is not a bstr"; in coseSignGetSignature()
1993 LOG(ERROR) << "Passed-in COSE_Sign1 is not valid CBOR: " << message; in coseSignGetPayload()
1998 LOG(ERROR) << "Value for COSE_Sign1 is not an array"; in coseSignGetPayload()
2002 LOG(ERROR) << "Value for COSE_Sign1 is not an array of size 4"; in coseSignGetPayload()
2010 LOG(ERROR) << "Value for payload is not null or a bstr"; in coseSignGetPayload()
2017 LOG(ERROR) << "Value for payload is not null or a bstr"; in coseSignGetPayload()
2030 LOG(ERROR) << "Passed-in COSE_Sign1 is not valid CBOR: " << message; in coseSignGetAlg()
2035 LOG(ERROR) << "Value for COSE_Sign1 is not an array"; in coseSignGetAlg()
2039 LOG(ERROR) << "Value for COSE_Sign1 is not an array of size 4"; in coseSignGetAlg()
2045 LOG(ERROR) << "Value for protectedHeaders is not a bstr"; in coseSignGetAlg()
2050 LOG(ERROR) << "Error parsing protectedHeaders: " << message2; in coseSignGetAlg()
2055 LOG(ERROR) << "Decoded CBOR for protectedHeaders is not a map"; in coseSignGetAlg()
2063 LOG(ERROR) << "Key item in top-level map is not a number"; in coseSignGetAlg()
2072 LOG(ERROR) << "Value for COSE_LABEL_ALG label is not a number"; in coseSignGetAlg()
2076 LOG(ERROR) << "Did not find COSE_LABEL_ALG label in protected headers"; in coseSignGetAlg()
2083 LOG(ERROR) << "Passed-in COSE_Sign1 is not valid CBOR: " << message; in coseSignGetX5Chain()
2088 LOG(ERROR) << "Value for COSE_Sign1 is not an array"; in coseSignGetX5Chain()
2092 LOG(ERROR) << "Value for COSE_Sign1 is not an array of size 4"; in coseSignGetX5Chain()
2098 LOG(ERROR) << "Value for unprotectedHeaders is not a map"; in coseSignGetX5Chain()
2106 LOG(ERROR) << "Key item in top-level map is not a number"; in coseSignGetX5Chain()
2121 LOG(ERROR) << "Item in x5chain array is not a bstr"; in coseSignGetX5Chain()
2129 LOG(ERROR) << "Value for x5chain label is not a bstr or array"; in coseSignGetX5Chain()
2133 LOG(ERROR) << "Did not find x5chain label in unprotected headers"; in coseSignGetX5Chain()
2167 LOG(ERROR) << "data and detachedContent cannot both be non-empty"; in coseMac0()
2178 LOG(ERROR) << "Error MACing toBeMACed data"; in coseMac0()
2226 LOG(ERROR) << "Error performing ECDH"; in calcEMacKey()
2233 LOG(ERROR) << "Error performing HKDF"; in calcEMacKey()
2245 LOG(ERROR) << "Error parsing sessionTranscriptEncoded: " << errMsg; in calcMac()
2300 LOG(ERROR) << "Failed to parse certificate"; in extractDerSubjectFromCertificate()
2306 LOG(ERROR) << "Failed to retrieve subject name"; in extractDerSubjectFromCertificate()
2312 LOG(ERROR) << "Error obtaining encoded subject name length"; in extractDerSubjectFromCertificate()
2319 LOG(ERROR) << "Error encoding subject name"; in extractDerSubjectFromCertificate()