Lines Matching refs:certs
737 vector<X509_Ptr> certs; in certificateChainValidate() local
739 if (!parseX509Certificates(certificateChain, certs)) { in certificateChainValidate()
744 if (certs.size() == 1) { in certificateChainValidate()
748 for (size_t n = 1; n < certs.size(); n++) { in certificateChainValidate()
749 const X509_Ptr& keyCert = certs[n - 1]; in certificateChainValidate()
750 const X509_Ptr& signingCert = certs[n]; in certificateChainValidate()
1530 vector<X509_Ptr> certs; in certificateChainGetTopMostKey() local
1531 if (!parseX509Certificates(certificateChain, certs)) { in certificateChainGetTopMostKey()
1534 if (certs.size() < 1) { in certificateChainGetTopMostKey()
1539 int algoId = OBJ_obj2nid(certs[0]->cert_info->key->algor->algorithm); in certificateChainGetTopMostKey()
1545 auto pkey = EVP_PKEY_Ptr(X509_get_pubkey(certs[0].get())); in certificateChainGetTopMostKey()
1573 vector<X509_Ptr> certs; in certificateFindPublicKey() local
1574 if (!parseX509Certificates(x509Certificate, certs)) { in certificateFindPublicKey()
1577 if (certs.size() < 1) { in certificateFindPublicKey()
1582 auto pkey = EVP_PKEY_Ptr(X509_get_pubkey(certs[0].get())); in certificateFindPublicKey()
1622 vector<X509_Ptr> certs; in certificateTbsCertificate() local
1623 if (!parseX509Certificates(x509Certificate, certs)) { in certificateTbsCertificate()
1626 if (certs.size() < 1) { in certificateTbsCertificate()
1632 int len = i2d_re_X509_tbs(certs[0].get(), &buf); in certificateTbsCertificate()
1656 vector<X509_Ptr> certs; in certificateFindSignature() local
1657 if (!parseX509Certificates(x509Certificate, certs)) { in certificateFindSignature()
1660 if (certs.size() < 1) { in certificateFindSignature()
1667 X509_get0_signature((const ASN1_BIT_STRING**)&psig, (const X509_ALGOR**)&palg, certs[0].get()); in certificateFindSignature()
1798 optional<vector<vector<uint8_t>>> certs = support::certificateChainSplit(certificateChain); in coseSignEcDsaWithSignature() local
1799 if (!certs) { in coseSignEcDsaWithSignature()
1803 if (certs.value().size() == 1) { in coseSignEcDsaWithSignature()
1804 unprotectedHeaders.add(COSE_LABEL_X5CHAIN, certs.value()[0]); in coseSignEcDsaWithSignature()
1807 for (const vector<uint8_t>& cert : certs.value()) { in coseSignEcDsaWithSignature()
1846 optional<vector<vector<uint8_t>>> certs = support::certificateChainSplit(certificateChain); in coseSignEcDsa() local
1847 if (!certs) { in coseSignEcDsa()
1851 if (certs.value().size() == 1) { in coseSignEcDsa()
1852 unprotectedHeaders.add(COSE_LABEL_X5CHAIN, certs.value()[0]); in coseSignEcDsa()
1855 for (const vector<uint8_t>& cert : certs.value()) { in coseSignEcDsa()
2123 vector<uint8_t> certs; in coseSignGetX5Chain() local
2131 certs.insert(certs.end(), certValue.begin(), certValue.end()); in coseSignGetX5Chain()
2133 return certs; in coseSignGetX5Chain()