• Home
  • Raw
  • Download

Lines Matching refs:cbb

112 static int marshal_integer(CBB *cbb, BIGNUM *bn) {  in marshal_integer()  argument
118 return BN_marshal_asn1(cbb, bn); in marshal_integer()
138 int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig) { in DSA_SIG_marshal() argument
140 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_SIG_marshal()
143 !CBB_flush(cbb)) { in DSA_SIG_marshal()
175 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_public_key() argument
177 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_public_key()
182 !CBB_flush(cbb)) { in DSA_marshal_public_key()
213 int DSA_marshal_parameters(CBB *cbb, const DSA *dsa) { in DSA_marshal_parameters() argument
215 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_parameters()
219 !CBB_flush(cbb)) { in DSA_marshal_parameters()
264 int DSA_marshal_private_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_private_key() argument
266 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_private_key()
273 !CBB_flush(cbb)) { in DSA_marshal_private_key()
299 CBB cbb; in i2d_DSA_SIG() local
300 if (!CBB_init(&cbb, 0) || in i2d_DSA_SIG()
301 !DSA_SIG_marshal(&cbb, in)) { in i2d_DSA_SIG()
302 CBB_cleanup(&cbb); in i2d_DSA_SIG()
305 return CBB_finish_i2d(&cbb, outp); in i2d_DSA_SIG()
327 CBB cbb; in i2d_DSAPublicKey() local
328 if (!CBB_init(&cbb, 0) || in i2d_DSAPublicKey()
329 !DSA_marshal_public_key(&cbb, in)) { in i2d_DSAPublicKey()
330 CBB_cleanup(&cbb); in i2d_DSAPublicKey()
333 return CBB_finish_i2d(&cbb, outp); in i2d_DSAPublicKey()
355 CBB cbb; in i2d_DSAPrivateKey() local
356 if (!CBB_init(&cbb, 0) || in i2d_DSAPrivateKey()
357 !DSA_marshal_private_key(&cbb, in)) { in i2d_DSAPrivateKey()
358 CBB_cleanup(&cbb); in i2d_DSAPrivateKey()
361 return CBB_finish_i2d(&cbb, outp); in i2d_DSAPrivateKey()
383 CBB cbb; in i2d_DSAparams() local
384 if (!CBB_init(&cbb, 0) || in i2d_DSAparams()
385 !DSA_marshal_parameters(&cbb, in)) { in i2d_DSAparams()
386 CBB_cleanup(&cbb); in i2d_DSAparams()
389 return CBB_finish_i2d(&cbb, outp); in i2d_DSAparams()