Home
last modified time | relevance | path

Searched refs:der_len (Results 1 – 12 of 12) sorted by relevance

/openssl/crypto/x509/
H A Dx509spki.c58 int der_len; in NETSCAPE_SPKI_b64_encode() local
60 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode()
61 if (der_len <= 0) in NETSCAPE_SPKI_b64_encode()
63 der_spki = OPENSSL_malloc(der_len); in NETSCAPE_SPKI_b64_encode()
64 b64_str = OPENSSL_malloc(der_len * 2); in NETSCAPE_SPKI_b64_encode()
72 EVP_EncodeBlock((unsigned char *)b64_str, der_spki, der_len); in NETSCAPE_SPKI_b64_encode()
/openssl/providers/implementations/encode_decode/
H A Ddecode_der2key.c213 long der_len = 0; in der2key_decode() local
233 ok = ossl_read_der(ctx->provctx, cin, &der, &der_len); in der2key_decode()
243 key = ctx->desc->d2i_PKCS8(NULL, &derp, der_len, ctx); in der2key_decode()
259 key = ctx->desc->d2i_PUBKEY(NULL, &derp, der_len); in der2key_decode()
261 key = ctx->desc->d2i_public_key(NULL, &derp, der_len); 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()
477 return der2key_decode_p8(der, der_len, ctx, in ecx_d2i_PKCS8()
536 return der2key_decode_p8(der, der_len, ctx, in sm2_d2i_PKCS8()
[all …]
H A Ddecode_epki2pki.c91 long der_len = 0; in epki2pki_decode() local
109 der_len = (long)mem->length; in epki2pki_decode()
114 if ((p8 = d2i_X509_SIG(NULL, &pder, der_len)) != NULL) { in epki2pki_decode()
138 der_len = new_der_len; in epki2pki_decode()
149 p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pder, der_len); in epki2pki_decode()
168 der, der_len); in epki2pki_decode()
H A Ddecode_pem2der.c140 long der_len = 0; 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()
/openssl/test/
H A Dasn1_decode_test.c175 int der_len, rc = 1; in test_gentime() local
179 der_len = sizeof(der); in test_gentime()
180 gentime = d2i_ASN1_GENERALIZEDTIME(NULL, &p, der_len); in test_gentime()
199 int der_len, rc = 1; in test_utctime() local
203 der_len = sizeof(der); in test_utctime()
204 utctime = d2i_ASN1_UTCTIME(NULL, &p, der_len); in test_utctime()
H A Dtls-provider.c2333 long der_len = 0; in xor_der2key_decode() local
2353 ok = xor_read_der(ctx->provctx, cin, &der, &der_len); in xor_der2key_decode()
2362 key = ctx->desc->d2i_PKCS8(NULL, &derp, der_len, ctx); in xor_der2key_decode()
2366 key = ctx->desc->d2i_private_key(NULL, &derp, der_len); in xor_der2key_decode()
2374 key = ctx->desc->d2i_PUBKEY(NULL, &derp, der_len); in xor_der2key_decode()
2376 key = ctx->desc->d2i_public_key(NULL, &derp, der_len); in xor_der2key_decode()
2383 key = ctx->desc->d2i_key_params(NULL, &derp, der_len); in xor_der2key_decode()
2466 static void *xorx_d2i_PKCS8(void **key, const unsigned char **der, long der_len, in xorx_d2i_PKCS8() argument
2469 return xor_der2key_decode_p8(der, der_len, ctx, in xorx_d2i_PKCS8()
/openssl/providers/implementations/storemgmt/
H A Dwinstore_store.c138 size_t der_len = 0; 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()
147 ctx->subject = OPENSSL_malloc(der_len); in winstore_set_ctx_params()
153 ctx->subject_len = 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
264 size_t der_len_ = der_len; in winstore_load_using()
H A Dfile_store.c350 size_t der_len = 0; in file_set_ctx_params() local
361 if (!OSSL_PARAM_get_octet_string_ptr(p, (const void **)&der, &der_len) in file_set_ctx_params()
362 || (x509_name = d2i_X509_NAME(NULL, &der, der_len)) == NULL) in file_set_ctx_params()
/openssl/crypto/ct/
H A Dct_sct_ctx.c206 int der_len; in ct_public_key_hash() local
223 der_len = i2d_X509_PUBKEY(pkey, &der); in ct_public_key_hash()
224 if (der_len <= 0) in ct_public_key_hash()
227 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) in ct_public_key_hash()
/openssl/crypto/asn1/
H A Da_strex.c269 int outlen, der_len; in do_dump() local
282 der_len = i2d_ASN1_TYPE(&t, NULL); in do_dump()
283 if (der_len <= 0) in do_dump()
285 if ((der_buf = OPENSSL_malloc(der_len)) == NULL) in do_dump()
289 outlen = do_hex_dump(io_ch, arg, der_buf, der_len); in do_dump()
/openssl/crypto/store/
H A Dstore_result.c312 long der_len = (long)data->octet_data_size; in try_key_value_legacy() local
318 pk = d2i_PUBKEY_ex(NULL, &derp, der_len, libctx, propq); in try_key_value_legacy()
334 p8 = d2i_X509_SIG(NULL, &derp, der_len); in try_key_value_legacy()
356 der_len = len; in try_key_value_legacy()
369 p8info = d2i_PKCS8_PRIV_KEY_INFO(NULL, &derp, der_len); in try_key_value_legacy()
/openssl/providers/implementations/kdfs/
H A Dx942kdf.c208 unsigned char **der, size_t *der_len, in x942_encode_otherinfo() argument
261 *der_len = der_buflen; in x942_encode_otherinfo()
464 size_t der_len = 0; in x942kdf_derive() local
518 &der, &der_len, &ctr)) { in x942kdf_derive()
523 der, der_len, ctr, key, keylen); in x942kdf_derive()

Completed in 47 milliseconds