/openssl/providers/ |
H A D | decoders.inc | 39 DECODER_w_structure("DH", der, PrivateKeyInfo, dh, yes), 42 DECODER_w_structure("DH", der, DH, dh, yes), 46 DECODER_w_structure("DHX", der, DHX, dhx, yes), 51 DECODER_w_structure("DSA", der, type_specific, dsa, yes), 52 DECODER_w_structure("DSA", der, DSA, dsa, yes), 57 DECODER_w_structure("EC", der, PrivateKeyInfo, ec, yes), 60 DECODER_w_structure("EC", der, EC, ec, yes), 80 DECODER_w_structure("RSA", der, RSA, rsa, yes), 90 DECODER_w_structure("DER", der, SubjectPublicKeyInfo, der, yes), 91 DECODER("DER", pem, der, yes), [all …]
|
H A D | encoders.inc | 106 ENCODER_w_structure("DSA", dsa, yes, der, type_specific), 156 ENCODER_w_structure("DH", dh, yes, der, PrivateKeyInfo), 234 ENCODER_w_structure("RSA", rsa, yes, der, RSA), 238 ENCODER_w_structure("DH", dh, yes, der, DH), 240 ENCODER_w_structure("DHX", dhx, yes, der, DHX), 244 ENCODER_w_structure("DSA", dsa, yes, der, DSA), 248 ENCODER_w_structure("EC", ec, yes, der, EC), 259 ENCODER_w_structure("RSA", rsa, yes, der, PKCS1), 265 ENCODER_w_structure("DH", dh, yes, der, PKCS3), 268 ENCODER_w_structure("DHX", dhx, yes, der, X9_42), [all …]
|
/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2any.c | 85 unsigned char *der = NULL; in key_to_p8info() local 91 || (derlen = k2d(key, &der)) <= 0 in key_to_p8info() 96 OPENSSL_free(der); in key_to_p8info() 147 unsigned char *der = NULL; in key_to_pubkey() local 154 || (derlen = k2d(key, &der)) <= 0 in key_to_pubkey() 159 OPENSSL_free(der); in key_to_pubkey() 378 unsigned char *der = NULL; in key_to_type_specific_der_bio() local 382 if ((derlen = k2d(key, &der)) <= 0) { in key_to_type_specific_der_bio() 387 ret = BIO_write(out, der, derlen); in key_to_type_specific_der_bio() 388 OPENSSL_free(der); in key_to_type_specific_der_bio() [all …]
|
H A D | decode_epki2pki.c | 89 unsigned char *der = NULL; in epki2pki_decode() local 108 pder = der = (unsigned char *)mem->data; in epki2pki_decode() 136 OPENSSL_free(der); in epki2pki_decode() 137 der = new_der; in epki2pki_decode() 148 pder = der; in epki2pki_decode() 168 der, der_len); in epki2pki_decode() 175 OPENSSL_free(der); in epki2pki_decode()
|
H A D | decode_der2key.c | 211 unsigned char *der = NULL; in der2key_decode() local 241 derp = der; in der2key_decode() 257 derp = der; in der2key_decode() 268 derp = der; in der2key_decode() 310 OPENSSL_free(der); in der2key_decode() 311 der = NULL; in der2key_decode() 343 OPENSSL_free(der); in der2key_decode() 381 return der2key_decode_p8(der, der_len, ctx, in dh_d2i_PKCS8() 416 return der2key_decode_p8(der, der_len, ctx, in dsa_d2i_PKCS8() 441 return der2key_decode_p8(der, der_len, ctx, in ec_d2i_PKCS8() [all …]
|
H A D | decode_spki2typespki.c | 81 unsigned char *der, *derp; in spki2typespki_decode() local 91 if (!ossl_read_der(ctx->provctx, cin, &der, &len)) in spki2typespki_decode() 93 derp = der; in spki2typespki_decode() 130 OSSL_PARAM_construct_octet_string(OSSL_OBJECT_PARAM_DATA, der, len); in spki2typespki_decode() 140 OPENSSL_free(der); in spki2typespki_decode()
|
H A D | decode_pem2der.c | 139 unsigned char *der = NULL; in pem2der_decode() local 145 &der, &der_len) > 0; in pem2der_decode() 164 || !PEM_do_header(&cipher, der, &der_len, in pem2der_decode() 199 der, der_len); in pem2der_decode() 211 OPENSSL_free(der); in pem2der_decode()
|
/openssl/fuzz/ |
H A D | asn1.c | 216 unsigned char *der = NULL; \ 229 OPENSSL_free(der); \ 236 unsigned char *der = NULL; \ 246 I2D(type, &der); \ 247 OPENSSL_free(der); \ 254 unsigned char *der = NULL; \ 264 I2D(type, &der); \ 265 OPENSSL_free(der); \ 273 unsigned char *der = NULL; \ 280 I2D(type, &der); \ [all …]
|
H A D | crl.c | 27 unsigned char *der = NULL; in FuzzerTestOneInput() local 35 i2d_X509_CRL(crl, &der); in FuzzerTestOneInput() 36 OPENSSL_free(der); in FuzzerTestOneInput()
|
H A D | acert.c | 28 unsigned char *der = NULL; in FuzzerTestOneInput() local 37 i2d_X509_ACERT(acert, &der); in FuzzerTestOneInput() 38 OPENSSL_free(der); in FuzzerTestOneInput()
|
H A D | ct.c | 31 unsigned char *der = NULL; in FuzzerTestOneInput() local 38 if (i2d_SCT_LIST(scts, &der)) { in FuzzerTestOneInput() 41 OPENSSL_free(der); in FuzzerTestOneInput()
|
/openssl/test/recipes/80-test_cmp_http_data/ |
H A D | test_commands.csv | 99 …tion,, -cmd,genm,, -template,_RESULT_DIR/test.template.der, -keyspec,_RESULT_DIR/test.keyspec.der,… 103 … -section,, -cmd,genm,, -template,_RESULT_DIR/test.template.der,_RESULT_DIR/test.template.der, -in… 127 …n,, -cmd,ir,,-reqout,_RESULT_DIR/ir.der _RESULT_DIR/certConf.der,,-rspout,_RESULT_DIR/ip.der _RESU… 128 1,reqout cr rspout cp, -section,, -cmd,cr,,-reqout,_RESULT_DIR/cr.der,,-rspout,_RESULT_DIR/cp.der,,… 129 1,reqin old tid, -section,, -cmd,ir,,-reqin,_RESULT_DIR/ir.der _RESULT_DIR/certConf.der,,BLANK,,,BL… 130 1,reqin new tid, -section,, -cmd,ir,,-reqin,_RESULT_DIR/ir.der _RESULT_DIR/certConf.der,,BLANK,,,BL… 131 0,reqin wrong req, -section,, -cmd,ir,,-reqin,_RESULT_DIR/cr.der _RESULT_DIR/certConf.der,,BLANK,,,… 132 1,rspin, -section,, -cmd,ir,,BLANK,,,-rspin,_RESULT_DIR/ip.der _RESULT_DIR/pkiConf.der,,BLANK,,BLANK 135 1,reqout_only ir - no server, -section,, -cmd,ir,,-reqout_only,_RESULT_DIR/ir2.der,,BLANK,,BLANK, -… 138 …ey but -popo -1, -section,, -cmd,ir,,-reqin,_RESULT_DIR/ir2.der,,-rspout,_RESULT_DIR/ip2.der,-newk… [all …]
|
/openssl/test/ |
H A D | d2i_test.c | 51 unsigned char *der = NULL; in test_bad_asn1() local 81 derlen = ASN1_item_i2d(value, &der, item_type); in test_bad_asn1() 83 if (der == NULL || derlen < 0) { in test_bad_asn1() 89 if (derlen != len || memcmp(der, buf, derlen) != 0) { in test_bad_asn1() 104 OPENSSL_free(der); in test_bad_asn1()
|
H A D | asn1_decode_test.c | 170 const unsigned char der[] = { in test_gentime() local 178 p = der; in test_gentime() 179 der_len = sizeof(der); in test_gentime() 194 const unsigned char der[] = { in test_utctime() local 202 p = der; in test_utctime() 203 der_len = sizeof(der); in test_utctime()
|
/openssl/crypto/ct/ |
H A D | ct_vfy.c | 32 unsigned char *p, *der; in sct_ctx_update() local 62 der = sctx->certder; in sct_ctx_update() 67 der = sctx->preder; in sct_ctx_update() 72 if (der == NULL) in sct_ctx_update() 81 if (!EVP_DigestUpdate(ctx, der, derlen)) in sct_ctx_update()
|
H A D | ct_sct_ctx.c | 205 unsigned char *md = NULL, *der = NULL; in ct_public_key_hash() local 223 der_len = i2d_X509_PUBKEY(pkey, &der); in ct_public_key_hash() 227 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) in ct_public_key_hash() 241 OPENSSL_free(der); in ct_public_key_hash()
|
/openssl/providers/common/include/prov/ |
H A D | der_digests.h.in | 12 #include "internal/der.h" 16 $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1', 17 'providers/common/der/DIGESTS.asn1',
|
H A D | der_rsa.h.in | 13 #include "internal/der.h" 17 $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1', 18 'providers/common/der/RSA.asn1',
|
H A D | der_wrap.h.in | 12 #include "internal/der.h" 16 $OUT = oids_to_c::process_leaves('providers/common/der/wrap.asn1',
|
/openssl/crypto/evp/ |
H A D | evp_lib.c | 1250 unsigned char *der = NULL; in EVP_CIPHER_CTX_set_algor_params() local 1267 OPENSSL_free(der); in EVP_CIPHER_CTX_set_algor_params() 1274 unsigned char *der = NULL; in EVP_CIPHER_CTX_get_algor_params() local 1316 if ((der = OPENSSL_malloc(derl)) != NULL) { in EVP_CIPHER_CTX_get_algor_params() 1317 unsigned char *derp = der; in EVP_CIPHER_CTX_get_algor_params() 1333 OPENSSL_free(der); in EVP_CIPHER_CTX_get_algor_params() 1378 unsigned char *der = NULL; in EVP_PKEY_CTX_set_algor_params() local 1393 OPENSSL_free(der); in EVP_PKEY_CTX_set_algor_params() 1401 unsigned char *der = NULL; in EVP_PKEY_CTX_get_algor_params() local 1433 unsigned char *derp = der; in EVP_PKEY_CTX_get_algor_params() [all …]
|
/openssl/providers/implementations/storemgmt/ |
H A D | winstore_store.c | 137 const unsigned char *der = NULL; in winstore_set_ctx_params() local 140 if (!OSSL_PARAM_get_octet_string_ptr(p, (const void **)&der, &der_len)) in winstore_set_ctx_params() 154 memcpy(ctx->subject, der, der_len); in winstore_set_ctx_params() 260 const void *der, size_t der_len) in winstore_load_using() argument 263 const unsigned char *der_ = der; in winstore_load_using()
|
/openssl/ |
H A D | .gitignore | 69 # Auto generated der files 70 providers/common/der/der_digests_gen.c 71 providers/common/der/der_dsa_gen.c 72 providers/common/der/der_ec_gen.c 73 providers/common/der/der_ecx_gen.c 74 providers/common/der/der_rsa_gen.c 75 providers/common/der/der_wrap_gen.c 76 providers/common/der/der_sm2_gen.c
|
/openssl/crypto/dsa/ |
H A D | dsa_sign.c | 199 unsigned char *der = NULL; in DSA_verify() local 209 derlen = i2d_DSA_SIG(s, &der); in DSA_verify() 210 if (derlen != siglen || memcmp(sigbuf, der, derlen)) in DSA_verify() 214 OPENSSL_clear_free(der, derlen); in DSA_verify()
|
/openssl/providers/common/der/ |
H A D | der_digests_gen.c.in | 16 $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1', 17 'providers/common/der/DIGESTS.asn1',
|
H A D | der_rsa_gen.c.in | 16 $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1', 17 'providers/common/der/RSA.asn1',
|