Lines Matching refs:cbb
43 bool AddRSASignatureAlgorithm(CBB* cbb, DigestAlgorithm algorithm) { in AddRSASignatureAlgorithm() argument
50 if (!CBB_add_asn1(cbb, &sequence, CBS_ASN1_SEQUENCE) || in AddRSASignatureAlgorithm()
64 if (!CBB_add_asn1(&sequence, ¶ms, CBS_ASN1_NULL) || !CBB_flush(cbb)) { in AddRSASignatureAlgorithm()
80 bool AddName(CBB* cbb, base::StringPiece name) { in AddName() argument
98 if (!CBB_add_asn1(cbb, &rdns, CBS_ASN1_SEQUENCE)) { in AddName()
141 if (!CBB_flush(cbb)) { in AddName()
147 bool AddTime(CBB* cbb, base::Time time) { in AddTime() argument
157 return CBB_add_asn1(cbb, &child, CBS_ASN1_UTCTIME) && in AddTime()
159 der::EncodeUTCTime(generalized_time, out) && CBB_flush(cbb); in AddTime()
162 return CBB_add_asn1(cbb, &child, CBS_ASN1_GENERALIZEDTIME) && in AddTime()
164 der::EncodeGeneralizedTime(generalized_time, out) && CBB_flush(cbb); in AddTime()
286 bssl::ScopedCBB cbb; in CreateSelfSignedCert() local
290 if (!CBB_init(cbb.get(), 64) || in CreateSelfSignedCert()
291 !CBB_add_asn1(cbb.get(), &tbs_cert, CBS_ASN1_SEQUENCE) || in CreateSelfSignedCert()
334 if (!CBB_finish(cbb.get(), &tbs_cert_bytes, &tbs_cert_len)) in CreateSelfSignedCert()
345 if (!CBB_init(cbb.get(), tbs_cert_len) || in CreateSelfSignedCert()
346 !CBB_add_asn1(cbb.get(), &cert, CBS_ASN1_SEQUENCE) || in CreateSelfSignedCert()
360 !CBB_finish(cbb.get(), &cert_bytes, &cert_len)) { in CreateSelfSignedCert()