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.h310 vector<uint8_t>& ecdsaCoseSignature);
313 bool ecdsaSignatureCoseToDer(const vector<uint8_t>& ecdsaCoseSignature,
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp1729 bool ecdsaSignatureCoseToDer(const vector<uint8_t>& ecdsaCoseSignature, in ecdsaSignatureCoseToDer() argument
1731 if (ecdsaCoseSignature.size() != 64) { in ecdsaSignatureCoseToDer()
1732 LOG(ERROR) << "COSE signature length is " << ecdsaCoseSignature.size() << ", expected 64"; in ecdsaSignatureCoseToDer()
1736 auto rBn = BIGNUM_Ptr(BN_bin2bn(ecdsaCoseSignature.data(), 32, nullptr)); in ecdsaSignatureCoseToDer()
1742 auto sBn = BIGNUM_Ptr(BN_bin2bn(ecdsaCoseSignature.data() + 32, 32, nullptr)); in ecdsaSignatureCoseToDer()
1761 vector<uint8_t>& ecdsaCoseSignature) { in ecdsaSignatureDerToCose() argument
1770 ecdsaCoseSignature.clear(); in ecdsaSignatureDerToCose()
1771 ecdsaCoseSignature.resize(64); in ecdsaSignatureDerToCose()
1772 if (BN_bn2binpad(sig->r, ecdsaCoseSignature.data(), 32) != 32) { in ecdsaSignatureDerToCose()
1776 if (BN_bn2binpad(sig->s, ecdsaCoseSignature.data() + 32, 32) != 32) { in ecdsaSignatureDerToCose()