Home
last modified time | relevance | path

Searched refs:EVP_MD_CTX (Results 1 – 25 of 109) sorted by relevance

12345

/external/boringssl/src/include/openssl/
Ddigest.h109 OPENSSL_EXPORT void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
114 OPENSSL_EXPORT EVP_MD_CTX *EVP_MD_CTX_new(void);
118 OPENSSL_EXPORT int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);
121 OPENSSL_EXPORT void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
125 OPENSSL_EXPORT int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);
129 OPENSSL_EXPORT int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
137 OPENSSL_EXPORT int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
142 OPENSSL_EXPORT int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);
146 OPENSSL_EXPORT int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
164 OPENSSL_EXPORT int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, uint8_t *md_out,
[all …]
Devp.h295 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
305 OPENSSL_EXPORT int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data,
320 OPENSSL_EXPORT int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig,
330 OPENSSL_EXPORT int EVP_DigestSign(EVP_MD_CTX *ctx, uint8_t *out_sig,
351 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
361 OPENSSL_EXPORT int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data,
371 OPENSSL_EXPORT int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig,
376 OPENSSL_EXPORT int EVP_DigestVerify(EVP_MD_CTX *ctx, const uint8_t *sig,
389 OPENSSL_EXPORT int EVP_SignInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
395 OPENSSL_EXPORT int EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type);
[all …]
Dhmac.h160 EVP_MD_CTX md_ctx;
161 EVP_MD_CTX i_ctx;
162 EVP_MD_CTX o_ctx;
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Ddigest.h108 OPENSSL_EXPORT void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
113 OPENSSL_EXPORT EVP_MD_CTX *EVP_MD_CTX_new(void);
117 OPENSSL_EXPORT int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);
120 OPENSSL_EXPORT void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
124 OPENSSL_EXPORT int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);
128 OPENSSL_EXPORT int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
136 OPENSSL_EXPORT int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
141 OPENSSL_EXPORT int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);
145 OPENSSL_EXPORT int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
163 OPENSSL_EXPORT int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, uint8_t *md_out,
[all …]
Devp.h293 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
303 OPENSSL_EXPORT int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data,
318 OPENSSL_EXPORT int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig,
328 OPENSSL_EXPORT int EVP_DigestSign(EVP_MD_CTX *ctx, uint8_t *out_sig,
349 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
359 OPENSSL_EXPORT int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data,
369 OPENSSL_EXPORT int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig,
374 OPENSSL_EXPORT int EVP_DigestVerify(EVP_MD_CTX *ctx, const uint8_t *sig,
387 OPENSSL_EXPORT int EVP_SignInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
393 OPENSSL_EXPORT int EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type);
[all …]
Dhmac.h160 EVP_MD_CTX md_ctx;
161 EVP_MD_CTX i_ctx;
162 EVP_MD_CTX o_ctx;
/external/boringssl/src/crypto/fipsmodule/digest/
Ddigest.c78 void EVP_MD_CTX_init(EVP_MD_CTX *ctx) { in EVP_MD_CTX_init()
79 OPENSSL_memset(ctx, 0, sizeof(EVP_MD_CTX)); in EVP_MD_CTX_init()
82 EVP_MD_CTX *EVP_MD_CTX_new(void) { in EVP_MD_CTX_new()
83 EVP_MD_CTX *ctx = OPENSSL_malloc(sizeof(EVP_MD_CTX)); in EVP_MD_CTX_new()
92 EVP_MD_CTX *EVP_MD_CTX_create(void) { return EVP_MD_CTX_new(); } in EVP_MD_CTX_create()
94 int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) { in EVP_MD_CTX_cleanup()
107 void EVP_MD_CTX_free(EVP_MD_CTX *ctx) { in EVP_MD_CTX_free()
116 void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) { EVP_MD_CTX_free(ctx); } in EVP_MD_CTX_destroy()
118 int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, uint8_t *out, size_t len) { in EVP_DigestFinalXOF()
125 void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags) {} in EVP_MD_CTX_set_flags()
[all …]
Ddigests.c78 static void md4_init(EVP_MD_CTX *ctx) { in md4_init()
82 static void md4_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in md4_update()
86 static void md4_final(EVP_MD_CTX *ctx, uint8_t *out) { in md4_final()
102 static void md5_init(EVP_MD_CTX *ctx) { in md5_init()
106 static void md5_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in md5_update()
110 static void md5_final(EVP_MD_CTX *ctx, uint8_t *out) { in md5_final()
126 static void sha1_init(EVP_MD_CTX *ctx) { in sha1_init()
130 static void sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in sha1_update()
134 static void sha1_final(EVP_MD_CTX *ctx, uint8_t *md) { in sha1_final()
150 static void sha224_init(EVP_MD_CTX *ctx) { in sha224_init()
[all …]
Dinternal.h79 void (*init)(EVP_MD_CTX *ctx);
82 void (*update)(EVP_MD_CTX *ctx, const void *data, size_t count);
85 void (*final)(EVP_MD_CTX *ctx, uint8_t *out);
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/digest/
Ddigest.c78 void EVP_MD_CTX_init(EVP_MD_CTX *ctx) { in EVP_MD_CTX_init()
79 OPENSSL_memset(ctx, 0, sizeof(EVP_MD_CTX)); in EVP_MD_CTX_init()
82 EVP_MD_CTX *EVP_MD_CTX_new(void) { in EVP_MD_CTX_new()
83 EVP_MD_CTX *ctx = OPENSSL_malloc(sizeof(EVP_MD_CTX)); in EVP_MD_CTX_new()
92 EVP_MD_CTX *EVP_MD_CTX_create(void) { return EVP_MD_CTX_new(); } in EVP_MD_CTX_create()
94 int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) { in EVP_MD_CTX_cleanup()
107 void EVP_MD_CTX_free(EVP_MD_CTX *ctx) { in EVP_MD_CTX_free()
116 void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) { EVP_MD_CTX_free(ctx); } in EVP_MD_CTX_destroy()
118 int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, uint8_t *out, size_t len) { in EVP_DigestFinalXOF()
125 int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in) { in EVP_MD_CTX_copy_ex()
[all …]
Ddigests.c78 static void md4_init(EVP_MD_CTX *ctx) { in md4_init()
82 static void md4_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in md4_update()
86 static void md4_final(EVP_MD_CTX *ctx, uint8_t *out) { in md4_final()
102 static void md5_init(EVP_MD_CTX *ctx) { in md5_init()
106 static void md5_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in md5_update()
110 static void md5_final(EVP_MD_CTX *ctx, uint8_t *out) { in md5_final()
126 static void sha1_init(EVP_MD_CTX *ctx) { in sha1_init()
130 static void sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in sha1_update()
134 static void sha1_final(EVP_MD_CTX *ctx, uint8_t *md) { in sha1_final()
150 static void sha224_init(EVP_MD_CTX *ctx) { in sha224_init()
[all …]
Dinternal.h79 void (*init)(EVP_MD_CTX *ctx);
82 void (*update)(EVP_MD_CTX *ctx, const void *data, size_t count);
85 void (*final)(EVP_MD_CTX *ctx, uint8_t *out);
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dsign.c65 int EVP_SignInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { in EVP_SignInit_ex()
69 int EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type) { in EVP_SignInit()
73 int EVP_SignUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_SignUpdate()
77 int EVP_SignFinal(const EVP_MD_CTX *ctx, uint8_t *sig, in EVP_SignFinal()
82 EVP_MD_CTX tmp_ctx; in EVP_SignFinal()
111 int EVP_VerifyInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { in EVP_VerifyInit_ex()
115 int EVP_VerifyInit(EVP_MD_CTX *ctx, const EVP_MD *type) { in EVP_VerifyInit()
119 int EVP_VerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_VerifyUpdate()
123 int EVP_VerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, size_t sig_len, in EVP_VerifyFinal()
128 EVP_MD_CTX tmp_ctx; in EVP_VerifyFinal()
Ddigestsign.c74 static int uses_prehash(EVP_MD_CTX *ctx, enum evp_sign_verify_t op) { in uses_prehash()
79 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()
131 int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestSignUpdate()
140 int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestVerifyUpdate()
149 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig, in EVP_DigestSignFinal()
157 EVP_MD_CTX tmp_ctx; in EVP_DigestSignFinal()
175 int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, in EVP_DigestVerifyFinal()
182 EVP_MD_CTX tmp_ctx; in EVP_DigestVerifyFinal()
[all …]
/external/boringssl/src/crypto/evp/
Dsign.c65 int EVP_SignInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { in EVP_SignInit_ex()
69 int EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type) { in EVP_SignInit()
73 int EVP_SignUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_SignUpdate()
77 int EVP_SignFinal(const EVP_MD_CTX *ctx, uint8_t *sig, in EVP_SignFinal()
82 EVP_MD_CTX tmp_ctx; in EVP_SignFinal()
111 int EVP_VerifyInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { in EVP_VerifyInit_ex()
115 int EVP_VerifyInit(EVP_MD_CTX *ctx, const EVP_MD *type) { in EVP_VerifyInit()
119 int EVP_VerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_VerifyUpdate()
123 int EVP_VerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, size_t sig_len, in EVP_VerifyFinal()
128 EVP_MD_CTX tmp_ctx; in EVP_VerifyFinal()
Ddigestsign.c74 static int uses_prehash(EVP_MD_CTX *ctx, enum evp_sign_verify_t op) { in uses_prehash()
79 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()
131 int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestSignUpdate()
140 int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestVerifyUpdate()
149 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig, in EVP_DigestSignFinal()
157 EVP_MD_CTX tmp_ctx; in EVP_DigestSignFinal()
175 int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, in EVP_DigestVerifyFinal()
182 EVP_MD_CTX tmp_ctx; in EVP_DigestVerifyFinal()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLMessageDigestJDK.java28 private final NativeRef.EVP_MD_CTX ctx;
56 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in OpenSSLMessageDigestJDK()
60 private OpenSSLMessageDigestJDK(long evp_md, int size, NativeRef.EVP_MD_CTX ctx, in OpenSSLMessageDigestJDK()
70 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in ensureDigestInitializedInContext()
81 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineReset()
196 NativeRef.EVP_MD_CTX ctxCopy = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in clone()
DOpenSSLSignature.java45 private NativeRef.EVP_MD_CTX ctx;
88 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in resetContext()
116 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate()
158 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate()
224 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineSign()
245 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineVerify()
DNativeCrypto.java223 static native void EVP_MD_CTX_cleanup(NativeRef.EVP_MD_CTX ctx); in EVP_MD_CTX_cleanup()
228 NativeRef.EVP_MD_CTX dst_ctx, NativeRef.EVP_MD_CTX src_ctx); in EVP_MD_CTX_copy_ex()
232 static native int EVP_DigestInit_ex(NativeRef.EVP_MD_CTX ctx, long evp_md); in EVP_DigestInit_ex()
235 NativeRef.EVP_MD_CTX ctx, byte[] buffer, int offset, int length); in EVP_DigestUpdate()
237 static native void EVP_DigestUpdateDirect(NativeRef.EVP_MD_CTX ctx, long ptr, int length); in EVP_DigestUpdateDirect()
239 static native int EVP_DigestFinal_ex(NativeRef.EVP_MD_CTX ctx, byte[] hash, int offset); in EVP_DigestFinal_ex()
244 NativeRef.EVP_MD_CTX ctx, long evpMdRef, NativeRef.EVP_PKEY key); in EVP_DigestSignInit()
247 NativeRef.EVP_MD_CTX ctx, long evpMdRef, NativeRef.EVP_PKEY key); in EVP_DigestVerifyInit()
250 NativeRef.EVP_MD_CTX ctx, byte[] buffer, int offset, int length); in EVP_DigestSignUpdate()
252 static native void EVP_DigestSignUpdateDirect(NativeRef.EVP_MD_CTX ctx, long ptr, int length); in EVP_DigestSignUpdateDirect()
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLMessageDigestJDK.java31 private final NativeRef.EVP_MD_CTX ctx;
59 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in OpenSSLMessageDigestJDK()
63 private OpenSSLMessageDigestJDK(long evp_md, int size, NativeRef.EVP_MD_CTX ctx, in OpenSSLMessageDigestJDK()
73 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in ensureDigestInitializedInContext()
84 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineReset()
229 NativeRef.EVP_MD_CTX ctxCopy = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in clone()
DOpenSSLSignature.java47 private NativeRef.EVP_MD_CTX ctx;
90 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in resetContext()
118 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate()
160 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate()
226 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineSign()
247 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineVerify()
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/
Dinternal.h33 int x509_rsa_pss_to_ctx(EVP_MD_CTX *ctx, X509_ALGOR *sigalg, EVP_PKEY *pkey);
38 int x509_rsa_ctx_to_pss(EVP_MD_CTX *ctx, X509_ALGOR *algor);
52 int x509_digest_sign_algorithm(EVP_MD_CTX *ctx, X509_ALGOR *algor);
58 int x509_digest_verify_init(EVP_MD_CTX *ctx, X509_ALGOR *sigalg,
/external/boringssl/src/crypto/x509/
Dinternal.h33 int x509_rsa_pss_to_ctx(EVP_MD_CTX *ctx, X509_ALGOR *sigalg, EVP_PKEY *pkey);
38 int x509_rsa_ctx_to_pss(EVP_MD_CTX *ctx, X509_ALGOR *algor);
52 int x509_digest_sign_algorithm(EVP_MD_CTX *ctx, X509_ALGOR *algor);
58 int x509_digest_verify_init(EVP_MD_CTX *ctx, X509_ALGOR *sigalg,
/external/libchrome/crypto/
Dsignature_creator.h18 typedef struct env_md_ctx_st EVP_MD_CTX; typedef
60 EVP_MD_CTX* sign_context_;
/external/openscreen/util/crypto/
Dsecure_hash.h42 bssl::UniquePtr<EVP_MD_CTX> ctx_ =
43 bssl::UniquePtr<EVP_MD_CTX>(EVP_MD_CTX_new());

12345