Home
last modified time | relevance | path

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

/third_party/openssl/crypto/dh/
Ddh_kdf.c54 int derlen; in dh_sharedinfo_encode() local
79 derlen = CMS_SharedInfo_encode(pder, &atmp, pukm_oct, outlen); in dh_sharedinfo_encode()
80 if (derlen <= 0) in dh_sharedinfo_encode()
83 tlen = derlen; in dh_sharedinfo_encode()
95 return derlen; in dh_sharedinfo_encode()
108 int derlen; in DH_KDF_X9_42() local
115 derlen = dh_sharedinfo_encode(&der, &ctr, key_oid, outlen, ukm, ukmlen); in DH_KDF_X9_42()
116 if (derlen == 0) in DH_KDF_X9_42()
127 if (!EVP_DigestUpdate(mctx, der, derlen)) in DH_KDF_X9_42()
Ddh_ameth.c250 const unsigned char **pder, int derlen) in dh_param_decode() argument
254 if ((dh = d2i_dhp(pkey, pder, derlen)) == NULL) { in dh_param_decode()
/third_party/openssl/crypto/asn1/
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()
150 derlen = ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_prefix()
196 int derlen; in ndef_suffix() local
215 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_suffix()
216 if ((p = OPENSSL_malloc(derlen)) == NULL) { in ndef_suffix()
223 derlen = ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_suffix()
228 *plen = derlen - (*ndef_aux->boundary - ndef_aux->derbuf); in ndef_suffix()
Dasn1_gen.c412 int derlen; in asn1_multi() local
439 derlen = i2d_ASN1_SET_ANY(sk, &der); in asn1_multi()
441 derlen = i2d_ASN1_SEQUENCE_ANY(sk, &der); in asn1_multi()
443 if (derlen < 0) in asn1_multi()
452 ret->value.asn1_string->length = derlen; in asn1_multi()
Dameth_lib.c336 int derlen), in EVP_PKEY_asn1_set_param() argument
/third_party/openssl/test/
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()
Dv3nametest.c364 size_t derlen; member
679 namesa[i] = d2i_GENERAL_NAME(NULL, &derp, gennames[i].derlen); in test_GENERAL_NAME_cmp()
681 namesb[i] = d2i_GENERAL_NAME(NULL, &derp, gennames[i].derlen); in test_GENERAL_NAME_cmp()
/third_party/openssl/crypto/ct/
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()
/third_party/openssl/crypto/dsa/
Ddsa_asn1.c138 int derlen = -1; in DSA_verify() local
147 derlen = i2d_DSA_SIG(s, &der); in DSA_verify()
148 if (derlen != siglen || memcmp(sigbuf, der, derlen)) in DSA_verify()
152 OPENSSL_clear_free(der, derlen); in DSA_verify()
Ddsa_ameth.c376 const unsigned char **pder, int derlen) in dsa_param_decode() argument
380 if ((dsa = d2i_DSAparams(NULL, pder, derlen)) == NULL) { in dsa_param_decode()
412 const unsigned char **pder, int derlen) in old_dsa_priv_decode() argument
416 if ((dsa = d2i_DSAPrivateKey(NULL, pder, derlen)) == NULL) { in old_dsa_priv_decode()
/third_party/openssl/crypto/x509/
Dt_x509.c225 int derlen; in X509_ocspid_print() local
237 derlen = i2d_X509_NAME(subj, NULL); in X509_ocspid_print()
238 if ((der = dertmp = OPENSSL_malloc(derlen)) == NULL) in X509_ocspid_print()
242 if (!EVP_Digest(der, derlen, SHA1md, NULL, EVP_sha1(), NULL)) in X509_ocspid_print()
/third_party/openssl/crypto/ec/
Decdsa_ossl.c298 int derlen = -1; in ossl_ecdsa_verify() local
307 derlen = i2d_ECDSA_SIG(s, &der); in ossl_ecdsa_verify()
308 if (derlen != sig_len || memcmp(sigbuf, der, derlen) != 0) in ossl_ecdsa_verify()
Dec_ameth.c423 const unsigned char **pder, int derlen) in eckey_param_decode() argument
427 if ((eckey = d2i_ECParameters(NULL, pder, derlen)) == NULL) { in eckey_param_decode()
459 const unsigned char **pder, int derlen) in old_ec_priv_decode() argument
463 if ((ec = d2i_ECPrivateKey(NULL, pder, derlen)) == NULL) { in old_ec_priv_decode()
/third_party/openssl/include/crypto/
Dasn1.h33 const unsigned char **pder, int derlen);
47 const unsigned char **pder, int derlen);
/third_party/openssl/crypto/sm2/
Dsm2_sign.c447 int derlen = -1; in sm2_verify() local
460 derlen = i2d_ECDSA_SIG(s, &der); in sm2_verify()
461 if (derlen != sig_len || memcmp(sig, der, derlen) != 0) { in sm2_verify()
/third_party/openssl/doc/man3/
DEVP_PKEY_ASN1_METHOD.pod69 int derlen),
206 const unsigned char **pder, int derlen);
265 const unsigned char **pder, int derlen);
/third_party/openssl/apps/
Ds_server.c3541 int derlen; member
3553 sess->derlen = i2d_SSL_SESSION(session, NULL); in add_session()
3554 if (sess->derlen < 0) { in add_session()
3561 sess->der = app_malloc(sess->derlen, "get session buffer"); in add_session()
3572 if (i2d_SSL_SESSION(session, &p) != sess->derlen) { in add_session()
3595 return d2i_SSL_SESSION(NULL, &p, sess->derlen); in get_session()
/third_party/openssl/crypto/rsa/
Drsa_ameth.c137 const unsigned char **pder, int derlen) in old_rsa_priv_decode() argument
141 if ((rsa = d2i_RSAPrivateKey(NULL, pder, derlen)) == NULL) { in old_rsa_priv_decode()
/third_party/curl/lib/vtls/
Dsectransp.c2283 size_t derlen, offset = 0; local
2308 res = pem_to_der((const char *)certbuf + offset, &der, &derlen);
2331 rc = append_cert_to_array(data, der, derlen, array);
/third_party/openssl/include/openssl/
Devp.h1189 int derlen),