/external/boringssl/src/crypto/pkcs7/ |
internal.h | 36 * |cb| with a CBB to which certificate or CRL data can be written, and the 41 int pkcs7_bundle(CBB *out, int (*cb)(CBB *out, const void *arg),
|
pkcs7_x509.c | 175 static int pkcs7_bundle_certificates_cb(CBB *out, const void *arg) { 178 CBB certificates; 201 int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs) { 205 static int pkcs7_bundle_crls_cb(CBB *out, const void *arg) { 208 CBB crl_data; 231 int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls) {
|
pkcs7.c | 142 int pkcs7_bundle(CBB *out, int (*cb)(CBB *out, const void *arg), 144 CBB outer_seq, oid, wrapped_seq, seq, version_bytes, digest_algos_set,
|
/external/libchrome/crypto/ |
auto_cbb.h | 14 // AutoCBB is a wrapper over OpenSSL's CBB type that automatically releases 21 CBB* get() { return &cbb_; } 29 CBB cbb_;
|
/external/boringssl/src/include/openssl/ |
bytestring.h | 31 * A "CBB" (CRYPTO ByteBuilder) is a memory buffer that grows as needed and 153 * bit. |CBS| and |CBB| APIs consider the constructed bit to be part of the 272 * |CBB| objects allow one to build length-prefixed serialisations. A |CBB| 274 * |CBB_init|. Several |CBB| objects can point at the same buffer when a 275 * length-prefix is pending, however only a single |CBB| can be 'current' at 277 * the new |CBB| points at the same buffer as the original. But if the original 278 * |CBB| is used then the length prefix is written out and the new |CBB| must 281 * If one needs to force a length prefix to be written out because a |CBB| i [all...] |
pkcs7.h | 49 CBB *out, const STACK_OF(X509) *certs); 58 OPENSSL_EXPORT int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls);
|
dsa.h | 240 * result to |cbb|. It returns one on success and zero on error. */ 241 OPENSSL_EXPORT int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig); 248 * appends the result to |cbb|. It returns one on success and zero on 250 OPENSSL_EXPORT int DSA_marshal_public_key(CBB *cbb, const DSA *dsa); 257 * appends the result to |cbb|. It returns one on success and zero on 259 OPENSSL_EXPORT int DSA_marshal_private_key(CBB *cbb, const DSA *dsa); 267 * (RFC 3447) and appends the result to |cbb|. It returns one on success an [all...] |
/external/boringssl/src/crypto/bytestring/ |
cbb.c | 25 void CBB_zero(CBB *cbb) { 26 OPENSSL_memset(cbb, 0, sizeof(CBB)); 29 static int cbb_init(CBB *cbb, uint8_t *buf, size_t cap) { 30 /* This assumes that |cbb| has already been zeroed. */ 44 cbb->base = base; 45 cbb->is_top_level = 1; 49 int CBB_init(CBB *cbb, size_t initial_capacity) [all...] |
internal.h | 61 /* CBB_finish_i2d calls |CBB_finish| on |cbb| which must have been initialized 65 * error, it calls |CBB_cleanup| on |cbb|. 68 int CBB_finish_i2d(CBB *cbb, uint8_t **outp);
|
asn1_compat.c | 28 int CBB_finish_i2d(CBB *cbb, uint8_t **outp) { 29 assert(cbb->base->can_resize); 33 if (!CBB_finish(cbb, &der, &der_len)) { 34 CBB_cleanup(cbb);
|
ber.c | 114 static int cbs_convert_ber(CBS *in, CBB *out, unsigned string_tag, 126 CBB *out_contents, out_contents_storage; 196 CBB cbb; local 211 if (!CBB_init(&cbb, CBS_len(in)) || 212 !cbs_convert_ber(in, &cbb, 0, 0, 0) || 213 !CBB_finish(&cbb, out, out_len)) { 214 CBB_cleanup(&cbb); 236 CBB result;
|
/external/boringssl/src/crypto/dsa/ |
dsa_asn1.c | 76 static int marshal_integer(CBB *cbb, BIGNUM *bn) { 82 return BN_marshal_asn1(cbb, bn); 102 int DSA_SIG_marshal(CBB *cbb, const DSA_SIG *sig) { 103 CBB child; 104 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || 107 !CBB_flush(cbb)) { 133 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa) 248 CBB cbb; local 276 CBB cbb; local 304 CBB cbb; local 332 CBB cbb; local [all...] |
/external/boringssl/src/crypto/dh/ |
dh_asn1.c | 77 static int marshal_integer(CBB *cbb, BIGNUM *bn) { 83 return BN_marshal_asn1(cbb, bn); 120 int DH_marshal_parameters(CBB *cbb, const DH *dh) { 121 CBB child; 122 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || 127 !CBB_flush(cbb)) { 153 CBB cbb; local [all...] |
/external/boringssl/src/crypto/bn_extra/ |
bn_asn1.c | 61 int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) { 68 CBB child; 69 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER) || 74 !CBB_flush(cbb)) {
|
/external/boringssl/src/crypto/rsa_extra/ |
rsa_asn1.c | 88 static int marshal_integer(CBB *cbb, BIGNUM *bn) { 94 return BN_marshal_asn1(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; local 256 CBB cbb; local 287 CBB cbb; local 315 CBB cbb; local [all...] |
/external/boringssl/src/ssl/ |
t1_lib.cc | 515 int tls12_add_verify_sigalgs(const SSL *ssl, CBB *out) { 570 * The add callbacks receive a |CBB| to which the extension can be appended but 580 int (*add_clienthello)(SSL_HANDSHAKE *hs, CBB *out); 586 int (*add_serverhello)(SSL_HANDSHAKE *hs, CBB *out); 607 static int dont_add_serverhello(SSL_HANDSHAKE *hs, CBB *out) { 615 static int ext_sni_add_clienthello(SSL_HANDSHAKE *hs, CBB *out) { 621 CBB contents, server_name_list, name; 702 static int ext_sni_add_serverhello(SSL_HANDSHAKE *hs, CBB *out) { 721 static int ext_ri_add_clienthello(SSL_HANDSHAKE *hs, CBB *out) { 731 CBB contents, prev_finished [all...] |
internal.h | 201 /* ssl_add_supported_versions writes the supported versions of |hs| to |cbb|, in 203 int ssl_add_supported_versions(SSL_HANDSHAKE *hs, CBB *cbb); 676 int custom_ext_add_clienthello(SSL_HANDSHAKE *hs, CBB *extensions); 681 int custom_ext_add_serverhello(SSL_HANDSHAKE *hs, CBB *extensions); 700 int (*offer)(SSL_ECDH_CTX *ctx, CBB *out_public_key); 708 int (*accept)(SSL_ECDH_CTX *ctx, CBB *out_public_key, uint8_t **out_secret, [all...] |
ssl_ecdh.cc | 39 static int ssl_ec_point_offer(SSL_ECDH_CTX *ctx, CBB *out) { 123 static int ssl_ec_point_accept(SSL_ECDH_CTX *ctx, CBB *out_public_key, 146 static int ssl_x25519_offer(SSL_ECDH_CTX *ctx, CBB *out) { 184 static int ssl_x25519_accept(SSL_ECDH_CTX *ctx, CBB *out_public_key, 325 int SSL_ECDH_CTX_offer(SSL_ECDH_CTX *ctx, CBB *out_public_key) { 329 int SSL_ECDH_CTX_accept(SSL_ECDH_CTX *ctx, CBB *out_public_key,
|
/external/boringssl/src/crypto/evp/ |
p_rsa_asn1.c | 79 static int rsa_pub_encode(CBB *out, const EVP_PKEY *key) { 81 CBB spki, algorithm, oid, null, key_bitstring; 137 static int rsa_priv_encode(CBB *out, const EVP_PKEY *key) { 138 CBB pkcs8, algorithm, oid, null, private_key;
|
p_dsa_asn1.c | 104 static int dsa_pub_encode(CBB *out, const EVP_PKEY *key) { 109 CBB spki, algorithm, oid, key_bitstring; 169 static int dsa_priv_encode(CBB *out, const EVP_PKEY *key) { 177 CBB pkcs8, algorithm, oid, private_key;
|
p_ec_asn1.c | 68 static int eckey_pub_encode(CBB *out, const EVP_PKEY *key) { 74 CBB spki, algorithm, oid, key_bitstring; 164 static int eckey_priv_encode(CBB *out, const EVP_PKEY *key) { 174 CBB pkcs8, algorithm, oid, private_key;
|
p_ed25519_asn1.c | 76 static int ed25519_pub_encode(CBB *out, const EVP_PKEY *pkey) { 80 CBB spki, algorithm, oid, key_bitstring; 123 static int ed25519_priv_encode(CBB *out, const EVP_PKEY *pkey) { 131 CBB pkcs8, algorithm, oid, private_key, inner;
|
/external/boringssl/src/crypto/ecdsa_extra/ |
ecdsa_asn1.c | 98 CBB cbb; local 99 CBB_zero(&cbb); 101 if (!CBB_init_fixed(&cbb, sig, ECDSA_size(eckey)) || 102 !ECDSA_SIG_marshal(&cbb, s) || 103 !CBB_finish(&cbb, NULL, &len)) { 105 CBB_cleanup(&cbb); 196 int ECDSA_SIG_marshal(CBB *cbb, const ECDSA_SIG *sig) { 197 CBB child 210 CBB cbb; local 275 CBB cbb; local [all...] |
/external/boringssl/src/crypto/pkcs8/ |
internal.h | 110 int PKCS5_pbe2_encrypt_init(CBB *out, EVP_CIPHER_CTX *ctx,
|
p5_pbev2.c | 127 static int add_cipher_oid(CBB *out, int nid) { 130 CBB child; 160 int PKCS5_pbe2_encrypt_init(CBB *out, EVP_CIPHER_CTX *ctx, 177 CBB algorithm, oid, param, kdf, kdf_oid, kdf_param, salt_cbb, cipher_cbb,
|