Home
last modified time | relevance | path

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

12

/external/boringssl/src/include/openssl/
Devp.h293 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
349 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
520 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
526 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
529 OPENSSL_EXPORT void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
533 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);
536 OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);
542 OPENSSL_EXPORT int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);
559 OPENSSL_EXPORT int EVP_PKEY_sign(EVP_PKEY_CTX *ctx, uint8_t *sig,
567 OPENSSL_EXPORT int EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);
[all …]
Ddigest.h297 EVP_PKEY_CTX *pctx;
Dbase.h397 typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; typedef
/external/boringssl/src/crypto/evp/
Devp_ctx.c86 static EVP_PKEY_CTX *evp_pkey_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id) { in evp_pkey_ctx_new()
87 EVP_PKEY_CTX *ret; in evp_pkey_ctx_new()
105 ret = OPENSSL_malloc(sizeof(EVP_PKEY_CTX)); in evp_pkey_ctx_new()
110 OPENSSL_memset(ret, 0, sizeof(EVP_PKEY_CTX)); in evp_pkey_ctx_new()
132 EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) { in EVP_PKEY_CTX_new()
136 EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e) { in EVP_PKEY_CTX_new_id()
140 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) { in EVP_PKEY_CTX_free()
152 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx) { in EVP_PKEY_CTX_dup()
157 EVP_PKEY_CTX *ret = OPENSSL_malloc(sizeof(EVP_PKEY_CTX)); in EVP_PKEY_CTX_dup()
162 OPENSSL_memset(ret, 0, sizeof(EVP_PKEY_CTX)); in EVP_PKEY_CTX_dup()
[all …]
Dinternal.h147 OPENSSL_EXPORT int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,
200 int (*init)(EVP_PKEY_CTX *ctx);
201 int (*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src);
202 void (*cleanup)(EVP_PKEY_CTX *ctx);
204 int (*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey);
206 int (*sign)(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen,
209 int (*sign_message)(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen,
212 int (*verify)(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen,
215 int (*verify_message)(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen,
218 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()
148 static void pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) { in pkey_rsa_cleanup()
161 static int setup_tbuf(RSA_PKEY_CTX *ctx, EVP_PKEY_CTX *pk) { in setup_tbuf()
172 static int pkey_rsa_sign(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen, in pkey_rsa_sign()
210 static int pkey_rsa_verify(EVP_PKEY_CTX *ctx, const uint8_t *sig, in pkey_rsa_verify()
243 static int pkey_rsa_verify_recover(EVP_PKEY_CTX *ctx, uint8_t *out, in pkey_rsa_verify_recover()
308 static int pkey_rsa_encrypt(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *outlen, in pkey_rsa_encrypt()
339 static int pkey_rsa_decrypt(EVP_PKEY_CTX *ctx, uint8_t *out, in pkey_rsa_decrypt()
397 static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) { in pkey_rsa_ctrl()
[all …]
Dp_x25519.c25 static int pkey_x25519_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { return 1; } in pkey_x25519_copy()
27 static int pkey_x25519_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_x25519_keygen()
47 static int pkey_x25519_derive(EVP_PKEY_CTX *ctx, uint8_t *out, in pkey_x25519_derive()
81 static int pkey_x25519_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) { in pkey_x25519_ctrl()
Dp_ed25519.c25 static int pkey_ed25519_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { return 1; } in pkey_ed25519_copy()
27 static int pkey_ed25519_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ed25519_keygen()
48 static int pkey_ed25519_sign_message(EVP_PKEY_CTX *ctx, uint8_t *sig, in pkey_ed25519_sign_message()
75 static int pkey_ed25519_verify_message(EVP_PKEY_CTX *ctx, const uint8_t *sig, in pkey_ed25519_verify_message()
Devp_test.cc251 static bool SetupContext(FileTest *t, KeyMap *key_map, EVP_PKEY_CTX *ctx) { in SetupContext()
306 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestDerive()
313 bssl::UniquePtr<EVP_PKEY_CTX> copy(EVP_PKEY_CTX_dup(ctx.get())); in TestDerive()
318 for (EVP_PKEY_CTX *pctx : {ctx.get(), copy.get()}) { in TestDerive()
380 int (*key_op_init)(EVP_PKEY_CTX *ctx) = nullptr; in TestEVP()
381 int (*key_op)(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *out_len, in TestEVP()
383 int (*md_op_init)(EVP_MD_CTX * ctx, EVP_PKEY_CTX * *pctx, const EVP_MD *type, in TestEVP()
429 EVP_PKEY_CTX *pctx; in TestEVP()
473 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestEVP()
482 bssl::UniquePtr<EVP_PKEY_CTX> copy(EVP_PKEY_CTX_dup(ctx.get())); in TestEVP()
[all …]
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.c418 int EVP_PKEY_CTX_set_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD *md) { in EVP_PKEY_CTX_set_signature_md()
423 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()
726 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new_id(EVP_PKEY_EC, nullptr)); in TEST()
762 bssl::UniquePtr<EVP_PKEY_CTX> pctx( 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.c133 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.java267 static native int EVP_PKEY_encrypt(NativeRef.EVP_PKEY_CTX ctx, byte[] out, int outOffset, in EVP_PKEY_encrypt()
273 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/arm-trusted-firmware/tools/cert_create/src/
Dcert.c106 EVP_PKEY_CTX *pKeyCtx = NULL; in cert_new()
/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.cc2624 int (*init_func)(EVP_MD_CTX*, EVP_PKEY_CTX**, const EVP_MD*, in evpDigestSignVerifyInit() argument
2647 EVP_PKEY_CTX* pctx = nullptr; in evpDigestSignVerifyInit()
2916 int (*encrypt_decrypt_func)(EVP_PKEY_CTX*, uint8_t*, size_t*, in evpPkeyEncryptDecrypt() argument
2921 EVP_PKEY_CTX* pkeyCtx = fromContextObject<EVP_PKEY_CTX>(env, evpPkeyCtxRef); in evpPkeyEncryptDecrypt()
2984 int (*real_func)(EVP_PKEY_CTX*), const char* opType) { in evpPkeyEcryptDecryptInit() argument
2992 bssl::UniquePtr<EVP_PKEY_CTX> pkeyCtx(EVP_PKEY_CTX_new(pkey, nullptr)); in evpPkeyEcryptDecryptInit()
3023 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); in NativeCrypto_EVP_PKEY_CTX_free()
3033 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
3055 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
3075 int (*ctrl_func)(EVP_PKEY_CTX*, const EVP_MD*)) { in evpPkeyCtxCtrlMdOp() argument
[all …]

12