Lines Matching refs:cbb
45 bool AddRSASignatureAlgorithm(CBB* cbb, DigestAlgorithm algorithm) { in AddRSASignatureAlgorithm() argument
52 if (!CBB_add_asn1(cbb, &sequence, CBS_ASN1_SEQUENCE) || in AddRSASignatureAlgorithm()
66 if (!CBB_add_asn1(&sequence, ¶ms, CBS_ASN1_NULL) || !CBB_flush(cbb)) { in AddRSASignatureAlgorithm()
82 bool AddName(CBB* cbb, base::StringPiece name) { in AddName() argument
100 if (!CBB_add_asn1(cbb, &rdns, CBS_ASN1_SEQUENCE)) { in AddName()
144 if (!CBB_flush(cbb)) { in AddName()
165 bool CBBAddTime(CBB* cbb, base::Time time) { in CBBAddTime() argument
175 return CBB_add_asn1(cbb, &child, CBS_ASN1_UTCTIME) && in CBBAddTime()
177 der::EncodeUTCTime(generalized_time, out) && CBB_flush(cbb); in CBBAddTime()
180 return CBB_add_asn1(cbb, &child, CBS_ASN1_GENERALIZEDTIME) && in CBBAddTime()
182 der::EncodeGeneralizedTime(generalized_time, out) && CBB_flush(cbb); in CBBAddTime()
289 bssl::ScopedCBB cbb; in CreateSelfSignedCert() local
293 if (!CBB_init(cbb.get(), 64) || in CreateSelfSignedCert()
294 !CBB_add_asn1(cbb.get(), &tbs_cert, CBS_ASN1_SEQUENCE) || in CreateSelfSignedCert()
337 if (!CBB_finish(cbb.get(), &tbs_cert_bytes, &tbs_cert_len)) in CreateSelfSignedCert()
348 if (!CBB_init(cbb.get(), tbs_cert_len) || in CreateSelfSignedCert()
349 !CBB_add_asn1(cbb.get(), &cert, CBS_ASN1_SEQUENCE) || in CreateSelfSignedCert()
363 !CBB_finish(cbb.get(), &cert_bytes, &cert_len)) { in CreateSelfSignedCert()