Home
last modified time | relevance | path

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

123

/external/rust/crates/quiche/deps/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 …]
/external/boringssl/src/include/openssl/
Devp.h295 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
351 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
522 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
528 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
531 OPENSSL_EXPORT void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
535 OPENSSL_EXPORT EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);
538 OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);
544 OPENSSL_EXPORT int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);
561 OPENSSL_EXPORT int EVP_PKEY_sign(EVP_PKEY_CTX *ctx, uint8_t *sig,
569 OPENSSL_EXPORT int EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);
[all …]
/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_rsa.c99 static int pkey_rsa_init(EVP_PKEY_CTX *ctx) { in pkey_rsa_init()
116 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_ec.c82 static int pkey_ec_init(EVP_PKEY_CTX *ctx) { in pkey_ec_init()
95 static int pkey_ec_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { in pkey_ec_copy()
108 static void pkey_ec_cleanup(EVP_PKEY_CTX *ctx) { in pkey_ec_cleanup()
118 static int pkey_ec_sign(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen, in pkey_ec_sign()
138 static int pkey_ec_verify(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen, in pkey_ec_verify()
143 static int pkey_ec_derive(EVP_PKEY_CTX *ctx, uint8_t *key, in pkey_ec_derive()
178 static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) { in pkey_ec_ctrl()
219 static int pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_keygen()
240 static int pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_paramgen()
274 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_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()
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()
Devp_test.cc250 static bool SetupContext(FileTest *t, KeyMap *key_map, EVP_PKEY_CTX *ctx) { in SetupContext()
305 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestDerive()
312 bssl::UniquePtr<EVP_PKEY_CTX> copy(EVP_PKEY_CTX_dup(ctx.get())); in TestDerive()
317 for (EVP_PKEY_CTX *pctx : {ctx.get(), copy.get()}) { in TestDerive()
379 int (*key_op_init)(EVP_PKEY_CTX *ctx) = nullptr; in TestEVP()
380 int (*key_op)(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *out_len, in TestEVP()
382 int (*md_op_init)(EVP_MD_CTX * ctx, EVP_PKEY_CTX * *pctx, const EVP_MD *type, in TestEVP()
428 EVP_PKEY_CTX *pctx; in TestEVP()
472 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestEVP()
481 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()
/external/rust/crates/quiche/deps/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_rsa.c99 static int pkey_rsa_init(EVP_PKEY_CTX *ctx) { in pkey_rsa_init()
116 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_ec.c82 static int pkey_ec_init(EVP_PKEY_CTX *ctx) { in pkey_ec_init()
95 static int pkey_ec_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) { in pkey_ec_copy()
108 static void pkey_ec_cleanup(EVP_PKEY_CTX *ctx) { in pkey_ec_cleanup()
118 static int pkey_ec_sign(EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *siglen, in pkey_ec_sign()
138 static int pkey_ec_verify(EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t siglen, in pkey_ec_verify()
143 static int pkey_ec_derive(EVP_PKEY_CTX *ctx, uint8_t *key, in pkey_ec_derive()
178 static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) { in pkey_ec_ctrl()
219 static int pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_keygen()
240 static int pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_paramgen()
274 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_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()
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()
Devp_test.cc250 static bool SetupContext(FileTest *t, KeyMap *key_map, EVP_PKEY_CTX *ctx) { in SetupContext()
305 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestDerive()
312 bssl::UniquePtr<EVP_PKEY_CTX> copy(EVP_PKEY_CTX_dup(ctx.get())); in TestDerive()
317 for (EVP_PKEY_CTX *pctx : {ctx.get(), copy.get()}) { in TestDerive()
379 int (*key_op_init)(EVP_PKEY_CTX *ctx) = nullptr; in TestEVP()
380 int (*key_op)(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *out_len, in TestEVP()
382 int (*md_op_init)(EVP_MD_CTX * ctx, EVP_PKEY_CTX * *pctx, const EVP_MD *type, in TestEVP()
428 EVP_PKEY_CTX *pctx; in TestEVP()
472 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(key, nullptr)); in TestEVP()
481 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()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/digest/
Dinternal.h100 void (*free) (EVP_PKEY_CTX *pctx);
104 EVP_PKEY_CTX* (*dup) (EVP_PKEY_CTX *pctx);
/external/boringssl/src/crypto/fipsmodule/digest/
Dinternal.h100 void (*free) (EVP_PKEY_CTX *pctx);
104 EVP_PKEY_CTX* (*dup) (EVP_PKEY_CTX *pctx);
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DNativeRef.java129 static final class EVP_PKEY_CTX extends NativeRef { class in NativeRef
130 EVP_PKEY_CTX(long nativePointer) { in EVP_PKEY_CTX() method in NativeRef.EVP_PKEY_CTX
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeRef.java128 static final class EVP_PKEY_CTX extends NativeRef { class in NativeRef
129 EVP_PKEY_CTX(long nativePointer) { in EVP_PKEY_CTX() method in NativeRef.EVP_PKEY_CTX
/external/libwebsockets/include/libwebsockets/
Dlws-genec.h39 EVP_PKEY_CTX *ctx[2];

123