Home
last modified time | relevance | path

Searched refs:EVP_PKEY_CTX (Results 1 – 25 of 32) sorted by relevance

12

/external/boringssl/src/include/openssl/
Devp.h260 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
316 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
487 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
493 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
496 OPENSSL_EXPORT void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
500 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);
503 OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);
509 OPENSSL_EXPORT int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);
526 OPENSSL_EXPORT int EVP_PKEY_sign(EVP_PKEY_CTX *ctx, uint8_t *sig,
534 OPENSSL_EXPORT int EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);
[all …]
Ddigest.h284 EVP_PKEY_CTX *pctx;
Dbase.h374 typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; typedef
/external/boringssl/src/crypto/evp/
Devp_ctx.c87 static EVP_PKEY_CTX *evp_pkey_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id) { in evp_pkey_ctx_new()
88 EVP_PKEY_CTX *ret; in evp_pkey_ctx_new()
106 ret = OPENSSL_malloc(sizeof(EVP_PKEY_CTX)); in evp_pkey_ctx_new()
111 OPENSSL_memset(ret, 0, sizeof(EVP_PKEY_CTX)); in evp_pkey_ctx_new()
133 EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) { in EVP_PKEY_CTX_new()
137 EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e) { in EVP_PKEY_CTX_new_id()
141 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) { in EVP_PKEY_CTX_free()
153 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx) { in EVP_PKEY_CTX_dup()
158 EVP_PKEY_CTX *ret = OPENSSL_malloc(sizeof(EVP_PKEY_CTX)); in EVP_PKEY_CTX_dup()
163 OPENSSL_memset(ret, 0, sizeof(EVP_PKEY_CTX)); in EVP_PKEY_CTX_dup()
[all …]
Dinternal.h142 OPENSSL_EXPORT int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,
195 int (*init)(EVP_PKEY_CTX *ctx);
196 int (*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src);
197 void (*cleanup)(EVP_PKEY_CTX *ctx);
199 int (*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey);
201 int (*sign)(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen,
204 int (*sign_message)(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen,
207 int (*verify)(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen,
210 int (*verify_message)(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen,
213 int (*verify_recover)(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *out_len,
[all …]
Dp_ec.c83 static int pkey_ec_init(EVP_PKEY_CTX *ctx) { in pkey_ec_init()
96 static int pkey_ec_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { in pkey_ec_copy()
109 static void pkey_ec_cleanup(EVP_PKEY_CTX *ctx) { in pkey_ec_cleanup()
119 static int pkey_ec_sign(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen, in pkey_ec_sign()
139 static int pkey_ec_verify(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen, in pkey_ec_verify()
144 static int pkey_ec_derive(EVP_PKEY_CTX *ctx, uint8_t *key, in pkey_ec_derive()
179 static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) { in pkey_ec_ctrl()
220 static int pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_keygen()
241 static int pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_paramgen()
275 int EVP_PKEY_CTX_set_ec_paramgen_curve_nid(EVP_PKEY_CTX *ctx, int nid) { in EVP_PKEY_CTX_set_ec_paramgen_curve_nid()
[all …]
Dp_rsa.c100 static int pkey_rsa_init(EVP_PKEY_CTX *ctx) { in pkey_rsa_init()
117 static int pkey_rsa_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { in pkey_rsa_copy()
147 static void pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) { in pkey_rsa_cleanup()
160 static int setup_tbuf(RSA_PKEY_CTX *ctx, EVP_PKEY_CTX *pk) { in setup_tbuf()
171 static int pkey_rsa_sign(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen, in pkey_rsa_sign()
209 static int pkey_rsa_verify(EVP_PKEY_CTX *ctx, const uint8_t *sig, in pkey_rsa_verify()
242 static int pkey_rsa_verify_recover(EVP_PKEY_CTX *ctx, uint8_t *out, in pkey_rsa_verify_recover()
307 static int pkey_rsa_encrypt(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *outlen, in pkey_rsa_encrypt()
338 static int pkey_rsa_decrypt(EVP_PKEY_CTX *ctx, uint8_t *out, in pkey_rsa_decrypt()
396 static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) { in pkey_rsa_ctrl()
[all …]
Dp_ed25519.c24 static int pkey_ed25519_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { return 1; } in pkey_ed25519_copy()
26 static int pkey_ed25519_sign_message(EVP_PKEY_CTX *ctx, uint8_t *sig, in pkey_ed25519_sign_message()
43 static int pkey_ed25519_verify_message(EVP_PKEY_CTX *ctx, const uint8_t *sig, in pkey_ed25519_verify_message()
Devp_test.cc193 static bool SetupContext(FileTest *t, EVP_PKEY_CTX *ctx) { in SetupContext()
246 int (*key_op_init)(EVP_PKEY_CTX *ctx) = nullptr; in TestEVP()
247 int (*key_op)(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *out_len, in TestEVP()
249 int (*md_op_init)(EVP_MD_CTX * ctx, EVP_PKEY_CTX * *pctx, const EVP_MD *type, in TestEVP()
301 EVP_PKEY_CTX *pctx; in TestEVP()
327 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestEVP()
506 EVP_PKEY_CTX *pctx; in RunWycheproofTest()
Ddigestsign.c79 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in do_sigver_init()
121 int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestSignInit()
126 int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in EVP_DigestVerifyInit()
Dsign.c83 EVP_PKEY_CTX *pkctx = NULL; in EVP_SignFinal()
129 EVP_PKEY_CTX *pkctx = NULL; in EVP_VerifyFinal()
Devp.c345 int EVP_PKEY_CTX_set_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD *md) { in EVP_PKEY_CTX_set_signature_md()
350 int EVP_PKEY_CTX_get_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD **out_md) { in EVP_PKEY_CTX_get_signature_md()
Devp_extra_test.cc428 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(pkey.get(), nullptr)); in TEST()
665 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new_id(EVP_PKEY_EC, nullptr)); in TEST()
/external/boringssl/src/crypto/fipsmodule/digest/
Dinternal.h100 void (*free) (EVP_PKEY_CTX *pctx);
104 EVP_PKEY_CTX* (*dup) (EVP_PKEY_CTX *pctx);
Ddigest.c124 EVP_PKEY_CTX *pctx = NULL; in EVP_MD_CTX_copy_ex()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DNativeRef.java117 static final class EVP_PKEY_CTX extends NativeRef { class in NativeRef
118 EVP_PKEY_CTX(long nativePointer) { in EVP_PKEY_CTX() method in NativeRef.EVP_PKEY_CTX
DOpenSSLCipherRSA.java449 private NativeRef.EVP_PKEY_CTX pkeyCtx;
546 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting in doCryptoInit()
DNativeCrypto.java271 static native int EVP_PKEY_encrypt(NativeRef.EVP_PKEY_CTX ctx, byte[] out, int outOffset, in EVP_PKEY_encrypt()
277 static native int EVP_PKEY_decrypt(NativeRef.EVP_PKEY_CTX ctx, byte[] out, int outOffset, in EVP_PKEY_decrypt()
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeRef.java116 static final class EVP_PKEY_CTX extends NativeRef { class in NativeRef
117 EVP_PKEY_CTX(long nativePointer) { in EVP_PKEY_CTX() method in NativeRef.EVP_PKEY_CTX
DOpenSSLCipherRSA.java433 private NativeRef.EVP_PKEY_CTX pkeyCtx;
530 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting in doCryptoInit()
DNativeCrypto.java259 static native int EVP_PKEY_encrypt(NativeRef.EVP_PKEY_CTX ctx, byte[] out, int outOffset, in EVP_PKEY_encrypt()
265 static native int EVP_PKEY_decrypt(NativeRef.EVP_PKEY_CTX ctx, byte[] out, int outOffset, in EVP_PKEY_decrypt()
/external/boringssl/src/crypto/x509/
Drsa_pss.c282 EVP_PKEY_CTX *pctx; in x509_rsa_pss_to_ctx()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc2620 int (*init_func)(EVP_MD_CTX*, EVP_PKEY_CTX**, const EVP_MD*, in evpDigestSignVerifyInit() argument
2643 EVP_PKEY_CTX* pctx = nullptr; in evpDigestSignVerifyInit()
2912 int (*encrypt_decrypt_func)(EVP_PKEY_CTX*, uint8_t*, size_t*, in evpPkeyEncryptDecrypt() argument
2917 EVP_PKEY_CTX* pkeyCtx = fromContextObject<EVP_PKEY_CTX>(env, evpPkeyCtxRef); in evpPkeyEncryptDecrypt()
2980 int (*real_func)(EVP_PKEY_CTX*), const char* opType) { in evpPkeyEcryptDecryptInit() argument
2988 bssl::UniquePtr<EVP_PKEY_CTX> pkeyCtx(EVP_PKEY_CTX_new(pkey, nullptr)); in evpPkeyEcryptDecryptInit()
3019 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); in NativeCrypto_EVP_PKEY_CTX_free()
3029 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
3051 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
3071 int (*ctrl_func)(EVP_PKEY_CTX*, const EVP_MD*)) { in evpPkeyCtxCtrlMdOp() argument
[all …]
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DNativeCryptoTest.java3035 private static NativeRef.EVP_PKEY_CTX getPkeyCtxForEncrypt() throws Exception { in getPkeyCtxForEncrypt()
3036 return new NativeRef.EVP_PKEY_CTX(getRawPkeyCtxForEncrypt()); in getPkeyCtxForEncrypt()
3098 NativeRef.EVP_PKEY_CTX holder = new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3110 new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()
/external/boringssl/src/ssl/
Dssl_privkey.cc181 EVP_PKEY_CTX *pctx; in setup_ctx()

12