/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 133 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 D | asn1_gen.c | 409 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 D | ameth_lib.c | 319 int derlen), in EVP_PKEY_asn1_set_param() argument
|
/openssl/test/ |
H A D | d2i_test.c | 52 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 D | v3nametest.c | 362 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 D | tls-provider.c | 1356 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 D | ct_vfy.c | 33 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 D | dsa_sign.c | 200 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 D | dsa_ameth.c | 321 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 D | evp_pkey.c | 137 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 D | t_x509.c | 202 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 D | x_pubkey.c | 348 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 D | asn1.h | 42 const unsigned char **pder, int derlen); 56 const unsigned char **pder, int derlen);
|
/openssl/crypto/sm2/ |
H A D | sm2_sign.c | 504 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 D | encode_key2any.c | 86 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 D | ec_ameth.c | 347 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 D | ecdsa_ossl.c | 425 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 D | ec_backend.c | 744 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 D | dh_ameth.c | 228 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 D | EVP_PKEY_ASN1_METHOD.pod | 69 int derlen), 206 const unsigned char **pder, int derlen); 265 const unsigned char **pder, int derlen);
|
/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 130 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 D | s_server.c | 3833 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 D | evp.h | 1621 int derlen),
|