Searched refs:ecdsaCoseSignature (Results 1 – 1 of 1) sorted by relevance
/hardware/interfaces/identity/support/src/ |
D | IdentityCredentialSupport.cpp | 1523 bool ecdsaSignatureCoseToDer(const vector<uint8_t>& ecdsaCoseSignature, in ecdsaSignatureCoseToDer() argument 1525 if (ecdsaCoseSignature.size() != 64) { in ecdsaSignatureCoseToDer() 1526 LOG(ERROR) << "COSE signature length is " << ecdsaCoseSignature.size() << ", expected 64"; in ecdsaSignatureCoseToDer() 1530 auto rBn = BIGNUM_Ptr(BN_bin2bn(ecdsaCoseSignature.data(), 32, nullptr)); in ecdsaSignatureCoseToDer() 1536 auto sBn = BIGNUM_Ptr(BN_bin2bn(ecdsaCoseSignature.data() + 32, 32, nullptr)); in ecdsaSignatureCoseToDer() 1555 vector<uint8_t>& ecdsaCoseSignature) { in ecdsaSignatureDerToCose() argument 1564 ecdsaCoseSignature.clear(); in ecdsaSignatureDerToCose() 1565 ecdsaCoseSignature.resize(64); in ecdsaSignatureDerToCose() 1566 if (BN_bn2binpad(sig->r, ecdsaCoseSignature.data(), 32) != 32) { in ecdsaSignatureDerToCose() 1570 if (BN_bn2binpad(sig->s, ecdsaCoseSignature.data() + 32, 32) != 32) { in ecdsaSignatureDerToCose()
|