Searched refs:pkey_ctx (Results 1 - 6 of 6) sorted by relevance

/external/chromium_org/crypto/
H A Dsignature_verifier_openssl.cc85 EVP_PKEY_CTX* pkey_ctx; local
87 public_key_info_len, &pkey_ctx)) {
91 int rv = EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, RSA_PKCS1_PSS_PADDING);
94 rv = EVP_PKEY_CTX_set_rsa_mgf1_md(pkey_ctx,
98 rv = EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, salt_len);
128 EVP_PKEY_CTX** pkey_ctx) {
149 int rv = EVP_DigestVerifyInit(verify_context_->ctx.get(), pkey_ctx,
123 CommonInit(const EVP_MD* digest, const uint8* signature, int signature_len, const uint8* public_key_info, int public_key_info_len, EVP_PKEY_CTX** pkey_ctx) argument
H A Dsignature_verifier.h118 EVP_PKEY_CTX** pkey_ctx);
/external/chromium_org/third_party/openssl/openssl/ssl/
H A Ds3_clnt.c2796 EVP_PKEY_CTX *pkey_ctx; local
2814 pkey_ctx=EVP_PKEY_CTX_new(pub_key=X509_get_pubkey(peer_cert),NULL);
2823 EVP_PKEY_encrypt_init(pkey_ctx);
2828 if (EVP_PKEY_derive_set_peer(pkey_ctx,s->cert->key->privatekey) <=0) {
2843 if (EVP_PKEY_CTX_ctrl(pkey_ctx,-1,EVP_PKEY_OP_ENCRYPT,EVP_PKEY_CTRL_SET_IV,
2853 if (EVP_PKEY_encrypt(pkey_ctx,tmp,&msglen,premaster_secret,32)<0) {
2871 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, NULL) > 0)
2876 EVP_PKEY_CTX_free(pkey_ctx);
H A Ds3_srvr.c2846 EVP_PKEY_CTX *pkey_ctx; local
2859 pkey_ctx = EVP_PKEY_CTX_new(pk,NULL);
2860 EVP_PKEY_decrypt_init(pkey_ctx);
2868 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0)
2892 if (EVP_PKEY_decrypt(pkey_ctx,premaster_secret,&outlen,start,inlen) <=0)
2903 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, NULL) > 0)
2909 EVP_PKEY_CTX_free(pkey_ctx);
/external/openssl/ssl/
H A Ds3_clnt.c2919 EVP_PKEY_CTX *pkey_ctx; local
2937 pkey_ctx=EVP_PKEY_CTX_new(pub_key=X509_get_pubkey(peer_cert),NULL);
2946 EVP_PKEY_encrypt_init(pkey_ctx);
2951 if (EVP_PKEY_derive_set_peer(pkey_ctx,s->cert->key->privatekey) <=0) {
2966 if (EVP_PKEY_CTX_ctrl(pkey_ctx,-1,EVP_PKEY_OP_ENCRYPT,EVP_PKEY_CTRL_SET_IV,
2976 if (EVP_PKEY_encrypt(pkey_ctx,tmp,&msglen,premaster_secret,32)<0) {
2994 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, NULL) > 0)
2999 EVP_PKEY_CTX_free(pkey_ctx);
H A Ds3_srvr.c2913 EVP_PKEY_CTX *pkey_ctx; local
2928 pkey_ctx = EVP_PKEY_CTX_new(pk,NULL);
2929 EVP_PKEY_decrypt_init(pkey_ctx);
2937 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0)
2950 if (EVP_PKEY_decrypt(pkey_ctx,premaster_secret,&outlen,start,inlen) <=0)
2960 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, NULL) > 0)
2966 EVP_PKEY_CTX_free(pkey_ctx);

Completed in 233 milliseconds