Home
last modified time | relevance | path

Searched refs:ecdsaCoseSignature (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/identity/support/include/android/hardware/identity/support/
DIdentityCredentialSupport.h348 vector<uint8_t>& ecdsaCoseSignature);
351 bool ecdsaSignatureCoseToDer(const vector<uint8_t>& ecdsaCoseSignature,
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp1723 bool ecdsaSignatureCoseToDer(const vector<uint8_t>& ecdsaCoseSignature, in ecdsaSignatureCoseToDer() argument
1725 if (ecdsaCoseSignature.size() != 64) { in ecdsaSignatureCoseToDer()
1726 LOG(ERROR) << "COSE signature length is " << ecdsaCoseSignature.size() << ", expected 64"; in ecdsaSignatureCoseToDer()
1730 auto rBn = BIGNUM_Ptr(BN_bin2bn(ecdsaCoseSignature.data(), 32, nullptr)); in ecdsaSignatureCoseToDer()
1736 auto sBn = BIGNUM_Ptr(BN_bin2bn(ecdsaCoseSignature.data() + 32, 32, nullptr)); in ecdsaSignatureCoseToDer()
1755 vector<uint8_t>& ecdsaCoseSignature) { in ecdsaSignatureDerToCose() argument
1764 ecdsaCoseSignature.clear(); in ecdsaSignatureDerToCose()
1765 ecdsaCoseSignature.resize(64); in ecdsaSignatureDerToCose()
1766 if (BN_bn2binpad(ECDSA_SIG_get0_r(sig), ecdsaCoseSignature.data(), 32) != 32) { in ecdsaSignatureDerToCose()
1770 if (BN_bn2binpad(ECDSA_SIG_get0_s(sig), ecdsaCoseSignature.data() + 32, 32) != 32) { in ecdsaSignatureDerToCose()