Home
last modified time | relevance | path

Searched refs:derlen (Results 1 – 23 of 23) sorted by relevance

/openssl/crypto/asn1/
H A Dbio_ndef.c133 int derlen; in ndef_prefix() local
140 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_prefix()
141 if (derlen < 0) in ndef_prefix()
143 if ((p = OPENSSL_malloc(derlen)) == NULL) in ndef_prefix()
194 int derlen; in ndef_suffix() local
213 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_suffix()
214 if (derlen < 0) in ndef_suffix()
216 if ((p = OPENSSL_malloc(derlen)) == NULL) in ndef_suffix()
221 derlen = ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_suffix()
226 *plen = derlen - (*ndef_aux->boundary - ndef_aux->derbuf); in ndef_suffix()
H A Dasn1_gen.c409 int derlen; in asn1_multi() local
436 derlen = i2d_ASN1_SET_ANY(sk, &der); in asn1_multi()
438 derlen = i2d_ASN1_SEQUENCE_ANY(sk, &der); in asn1_multi()
440 if (derlen < 0) in asn1_multi()
449 ret->value.asn1_string->length = derlen; in asn1_multi()
H A Dameth_lib.c319 int derlen), in EVP_PKEY_asn1_set_param() argument
/openssl/test/
H A Dd2i_test.c52 int derlen; 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()
H A Dv3nametest.c362 size_t derlen; member
677 namesa[i] = d2i_GENERAL_NAME(NULL, &derp, gennames[i].derlen); in test_GENERAL_NAME_cmp()
679 namesb[i] = d2i_GENERAL_NAME(NULL, &derp, gennames[i].derlen); in test_GENERAL_NAME_cmp()
H A Dtls-provider.c1356 int derlen; in key_to_p8info() local
1361 || (derlen = k2d(key, &der)) <= 0 in key_to_p8info()
1364 der, derlen)) { in key_to_p8info()
1418 int derlen; in xorx_key_to_pubkey() local
1423 || (derlen = k2d(key, &der)) <= 0 in xorx_key_to_pubkey()
1426 der, derlen)) { in xorx_key_to_pubkey()
/openssl/crypto/ct/
H A Dct_vfy.c33 size_t derlen; in sct_ctx_update() local
63 derlen = sctx->certderlen; in sct_ctx_update()
68 derlen = sctx->prederlen; in sct_ctx_update()
77 l2n3(derlen, p); in sct_ctx_update()
81 if (!EVP_DigestUpdate(ctx, der, derlen)) in sct_ctx_update()
/openssl/crypto/dsa/
H A Ddsa_sign.c200 int derlen = -1; 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()
H A Ddsa_ameth.c321 const unsigned char **pder, int derlen) in dsa_param_decode() argument
325 if ((dsa = d2i_DSAparams(NULL, pder, derlen)) == NULL) in dsa_param_decode()
357 const unsigned char **pder, int derlen) in old_dsa_priv_decode() argument
361 if ((dsa = d2i_DSAPrivateKey(NULL, pder, derlen)) == NULL) { in old_dsa_priv_decode()
/openssl/crypto/evp/
H A Devp_pkey.c137 size_t derlen = 0; in EVP_PKEY2PKCS8() local
143 || !OSSL_ENCODER_to_data(ctx, &der, &derlen)) in EVP_PKEY2PKCS8()
147 p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pp, (long)derlen); in EVP_PKEY2PKCS8()
/openssl/crypto/x509/
H A Dt_x509.c202 int derlen; in X509_ocspid_print() local
217 derlen = i2d_X509_NAME(subj, NULL); in X509_ocspid_print()
218 if (derlen <= 0) in X509_ocspid_print()
220 if ((der = dertmp = OPENSSL_malloc(derlen)) == NULL) in X509_ocspid_print()
227 if (!EVP_Digest(der, derlen, SHA1md, NULL, md, NULL)) in X509_ocspid_print()
H A Dx_pubkey.c348 size_t derlen = 0; in X509_PUBKEY_set() local
354 if (OSSL_ENCODER_to_data(ectx, &der, &derlen)) { in X509_PUBKEY_set()
357 pk = d2i_X509_PUBKEY(NULL, &pder, (long)derlen); in X509_PUBKEY_set()
/openssl/include/crypto/
H A Dasn1.h42 const unsigned char **pder, int derlen);
56 const unsigned char **pder, int derlen);
/openssl/crypto/sm2/
H A Dsm2_sign.c504 int derlen = -1; in ossl_sm2_internal_verify() local
517 derlen = i2d_ECDSA_SIG(s, &der); in ossl_sm2_internal_verify()
518 if (derlen != sig_len || memcmp(sig, der, derlen) != 0) { in ossl_sm2_internal_verify()
/openssl/providers/implementations/encode_decode/
H A Dencode_key2any.c86 int derlen; in key_to_p8info() local
91 || (derlen = k2d(key, &der)) <= 0 in key_to_p8info()
93 params_type, params, der, derlen)) { in key_to_p8info()
148 int derlen; in key_to_pubkey() local
154 || (derlen = k2d(key, &der)) <= 0 in key_to_pubkey()
156 params_type, params, der, derlen)) { in key_to_pubkey()
379 int derlen; 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()
/openssl/crypto/ec/
H A Dec_ameth.c347 const unsigned char **pder, int derlen) in eckey_param_decode() argument
351 if ((eckey = d2i_ECParameters(NULL, pder, derlen)) == NULL) in eckey_param_decode()
381 const unsigned char **pder, int derlen) in old_ec_priv_decode() argument
385 if ((ec = d2i_ECPrivateKey(NULL, pder, derlen)) == NULL) in old_ec_priv_decode()
H A Decdsa_ossl.c425 int derlen = -1; in ossl_ecdsa_verify() local
434 derlen = i2d_ECDSA_SIG(s, &der); in ossl_ecdsa_verify()
435 if (derlen != sig_len || memcmp(sigbuf, der, derlen) != 0) in ossl_ecdsa_verify()
H A Dec_backend.c744 int derlen = str->length; in ossl_x509_algor_is_sm2() local
748 if ((group = d2i_ECPKParameters(NULL, &der, derlen)) == NULL) in ossl_x509_algor_is_sm2()
/openssl/crypto/dh/
H A Ddh_ameth.c228 const unsigned char **pder, int derlen) in dh_param_decode() argument
232 if ((dh = d2i_dhp(pkey, pder, derlen)) == NULL) in dh_param_decode()
/openssl/doc/man3/
H A DEVP_PKEY_ASN1_METHOD.pod69 int derlen),
206 const unsigned char **pder, int derlen);
265 const unsigned char **pder, int derlen);
/openssl/crypto/rsa/
H A Drsa_ameth.c130 const unsigned char **pder, int derlen) in old_rsa_priv_decode() argument
134 if ((rsa = d2i_RSAPrivateKey(NULL, pder, derlen)) == NULL) in old_rsa_priv_decode()
/openssl/apps/
H A Ds_server.c3833 int derlen; member
3845 sess->derlen = i2d_SSL_SESSION(session, NULL); in add_session()
3846 if (sess->derlen < 0) { in add_session()
3853 sess->der = app_malloc(sess->derlen, "get session buffer"); in add_session()
3864 if (i2d_SSL_SESSION(session, &p) != sess->derlen) { in add_session()
3887 return d2i_SSL_SESSION_ex(NULL, &p, sess->derlen, app_get0_libctx(), in get_session()
/openssl/include/openssl/
H A Devp.h1621 int derlen),

Completed in 68 milliseconds