Lines Matching refs:CBB
88 static int marshal_integer(CBB *cbb, BIGNUM *bn) {
94 return BN_bn2cbb(cbb, bn);
146 int RSA_marshal_public_key(CBB *cbb, const RSA *rsa) {
147 CBB child;
148 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) ||
151 !CBB_flush(cbb)) {
160 CBB cbb;
161 CBB_zero(&cbb);
162 if (!CBB_init(&cbb, 0) ||
163 !RSA_marshal_public_key(&cbb, rsa) ||
164 !CBB_finish(&cbb, out_bytes, out_len)) {
166 CBB_cleanup(&cbb);
305 int RSA_marshal_private_key(CBB *cbb, const RSA *rsa) {
309 CBB child;
310 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) ||
326 CBB other_prime_infos;
335 CBB other_prime_info;
347 if (!CBB_flush(cbb)) {
356 CBB cbb;
357 CBB_zero(&cbb);
358 if (!CBB_init(&cbb, 0) ||
359 !RSA_marshal_private_key(&cbb, rsa) ||
360 !CBB_finish(&cbb, out_bytes, out_len)) {
362 CBB_cleanup(&cbb);