/external/chromium_org/third_party/boringssl/src/crypto/evp/ |
sign.c | 83 EVP_PKEY_CTX *pkctx = NULL; local 100 pkctx = EVP_PKEY_CTX_new(pkey, NULL); 101 if (!pkctx || EVP_PKEY_sign_init(pkctx) <= 0 || 102 EVP_PKEY_CTX_set_signature_md(pkctx, ctx->digest) <= 0 || 103 EVP_PKEY_sign(pkctx, sig, &sig_len, m, m_len) <= 0) { 110 if (pkctx) { 111 EVP_PKEY_CTX_free(pkctx); 135 EVP_PKEY_CTX *pkctx = NULL; local 150 pkctx = EVP_PKEY_CTX_new(pkey, NULL) [all...] |
p_rsa_asn1.c | 528 static ASN1_STRING *rsa_ctx_to_pss(EVP_PKEY_CTX *pkctx) { 532 EVP_PKEY *pk = EVP_PKEY_CTX_get0_pkey(pkctx); 535 if (EVP_PKEY_CTX_get_signature_md(pkctx, &sigmd) <= 0 || 536 EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0 || 537 !EVP_PKEY_CTX_get_rsa_pss_saltlen(pkctx, &saltlen)) { 588 * is NULL parameters are passed to pkctx instead. */ 589 static int rsa_pss_to_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pkctx, 638 if (!EVP_DigestVerifyInit(ctx, &pkctx, md, NULL, pkey)) { 643 if (EVP_PKEY_CTX_get_signature_md(pkctx, &checkmd) <= 0) { 652 if (EVP_PKEY_CTX_set_rsa_padding(pkctx, RSA_PKCS1_PSS_PADDING) <= 0 | 691 EVP_PKEY_CTX *pkctx = ctx->pctx; local [all...] |
/external/openssl/crypto/evp/ |
p_sign.c | 85 EVP_PKEY_CTX *pkctx = NULL; local 99 pkctx = EVP_PKEY_CTX_new(pkey, NULL); 100 if (!pkctx) 102 if (EVP_PKEY_sign_init(pkctx) <= 0) 104 if (EVP_PKEY_CTX_set_signature_md(pkctx, ctx->digest) <= 0) 106 if (EVP_PKEY_sign(pkctx, sigret, &sltmp, m, m_len) <= 0) 111 EVP_PKEY_CTX_free(pkctx);
|
p_verify.c | 72 EVP_PKEY_CTX *pkctx = NULL; local 84 pkctx = EVP_PKEY_CTX_new(pkey, NULL); 85 if (!pkctx) 87 if (EVP_PKEY_verify_init(pkctx) <= 0) 89 if (EVP_PKEY_CTX_set_signature_md(pkctx, ctx->digest) <= 0) 91 i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len); 93 EVP_PKEY_CTX_free(pkctx);
|
/external/openssl/crypto/rsa/ |
rsa_ameth.c | 469 EVP_PKEY_CTX *pkctx; local 546 if (!EVP_DigestVerifyInit(ctx, &pkctx, md, NULL, pkey)) 549 if (EVP_PKEY_CTX_set_rsa_padding(pkctx, RSA_PKCS1_PSS_PADDING) <= 0) 552 if (EVP_PKEY_CTX_set_rsa_pss_saltlen(pkctx, saltlen) <= 0) 555 if (EVP_PKEY_CTX_set_rsa_mgf1_md(pkctx, mgf1md) <= 0) 572 EVP_PKEY_CTX *pkctx = ctx->pctx; local 573 if (EVP_PKEY_CTX_get_rsa_padding(pkctx, &pad_mode) <= 0) 583 EVP_PKEY *pk = EVP_PKEY_CTX_get0_pkey(pkctx); 586 if (EVP_PKEY_CTX_get_rsa_mgf1_md(pkctx, &mgf1md) <= 0) 588 if (!EVP_PKEY_CTX_get_rsa_pss_saltlen(pkctx, &saltlen) [all...] |
/external/openssl/apps/ |
req.c | 1788 EVP_PKEY_CTX *pkctx = NULL; local [all...] |