Lines Matching refs:cbb

76 static int marshal_integer(CBB *cbb, BIGNUM *bn) {  in marshal_integer()  argument
82 return BN_marshal_asn1(cbb, bn); in marshal_integer()
102 int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig) { in DSA_SIG_marshal() argument
104 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_SIG_marshal()
107 !CBB_flush(cbb)) { in DSA_SIG_marshal()
133 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_public_key() argument
135 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_public_key()
140 !CBB_flush(cbb)) { in DSA_marshal_public_key()
165 int DSA_marshal_parameters(CBB *cbb, const DSA *dsa) { in DSA_marshal_parameters() argument
167 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_parameters()
171 !CBB_flush(cbb)) { in DSA_marshal_parameters()
213 int DSA_marshal_private_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_private_key() argument
215 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_private_key()
222 !CBB_flush(cbb)) { in DSA_marshal_private_key()
248 CBB cbb; in i2d_DSA_SIG() local
249 if (!CBB_init(&cbb, 0) || in i2d_DSA_SIG()
250 !DSA_SIG_marshal(&cbb, in)) { in i2d_DSA_SIG()
251 CBB_cleanup(&cbb); in i2d_DSA_SIG()
254 return CBB_finish_i2d(&cbb, outp); in i2d_DSA_SIG()
276 CBB cbb; in i2d_DSAPublicKey() local
277 if (!CBB_init(&cbb, 0) || in i2d_DSAPublicKey()
278 !DSA_marshal_public_key(&cbb, in)) { in i2d_DSAPublicKey()
279 CBB_cleanup(&cbb); in i2d_DSAPublicKey()
282 return CBB_finish_i2d(&cbb, outp); in i2d_DSAPublicKey()
304 CBB cbb; in i2d_DSAPrivateKey() local
305 if (!CBB_init(&cbb, 0) || in i2d_DSAPrivateKey()
306 !DSA_marshal_private_key(&cbb, in)) { in i2d_DSAPrivateKey()
307 CBB_cleanup(&cbb); in i2d_DSAPrivateKey()
310 return CBB_finish_i2d(&cbb, outp); in i2d_DSAPrivateKey()
332 CBB cbb; in i2d_DSAparams() local
333 if (!CBB_init(&cbb, 0) || in i2d_DSAparams()
334 !DSA_marshal_parameters(&cbb, in)) { in i2d_DSAparams()
335 CBB_cleanup(&cbb); in i2d_DSAparams()
338 return CBB_finish_i2d(&cbb, outp); in i2d_DSAparams()