Home
last modified time | relevance | path

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

123

/external/boringssl/src/include/openssl/
Ddigest.h106 OPENSSL_EXPORT void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
110 OPENSSL_EXPORT EVP_MD_CTX *EVP_MD_CTX_create(void);
114 OPENSSL_EXPORT int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);
117 OPENSSL_EXPORT void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
121 OPENSSL_EXPORT int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);
129 OPENSSL_EXPORT int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
134 OPENSSL_EXPORT int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);
138 OPENSSL_EXPORT int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
151 OPENSSL_EXPORT int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, uint8_t *md_out,
156 OPENSSL_EXPORT int EVP_DigestFinal(EVP_MD_CTX *ctx, uint8_t *md_out,
[all …]
Devp.h231 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
237 OPENSSL_EXPORT int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data,
248 OPENSSL_EXPORT int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig,
258 OPENSSL_EXPORT int EVP_DigestSignAlgorithm(EVP_MD_CTX *ctx, X509_ALGOR *algor);
270 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
282 OPENSSL_EXPORT int EVP_DigestVerifyInitFromAlgorithm(EVP_MD_CTX *ctx,
288 OPENSSL_EXPORT int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data,
294 OPENSSL_EXPORT int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig,
306 OPENSSL_EXPORT int EVP_SignInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,
312 OPENSSL_EXPORT int EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type);
[all …]
Dhmac.h150 EVP_MD_CTX md_ctx;
151 EVP_MD_CTX i_ctx;
152 EVP_MD_CTX o_ctx;
/external/boringssl/src/crypto/digest/
Ddigest.c78 void EVP_MD_CTX_init(EVP_MD_CTX *ctx) { memset(ctx, 0, sizeof(EVP_MD_CTX)); } in EVP_MD_CTX_init()
80 EVP_MD_CTX *EVP_MD_CTX_create(void) { in EVP_MD_CTX_create()
81 EVP_MD_CTX *ctx = OPENSSL_malloc(sizeof(EVP_MD_CTX)); in EVP_MD_CTX_create()
90 int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) { in EVP_MD_CTX_cleanup()
106 void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) { in EVP_MD_CTX_destroy()
115 int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in) { in EVP_MD_CTX_copy_ex()
160 int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in) { in EVP_MD_CTX_copy()
165 int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *engine) { in EVP_DigestInit_ex()
186 int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) { in EVP_DigestInit()
191 int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestUpdate()
[all …]
Ddigests.c76 static void md4_init(EVP_MD_CTX *ctx) { in md4_init()
80 static void md4_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in md4_update()
84 static void md4_final(EVP_MD_CTX *ctx, uint8_t *out) { in md4_final()
96 static void md5_init(EVP_MD_CTX *ctx) { in md5_init()
100 static void md5_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in md5_update()
104 static void md5_final(EVP_MD_CTX *ctx, uint8_t *out) { in md5_final()
116 static void sha1_init(EVP_MD_CTX *ctx) { in sha1_init()
120 static void sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) { in sha1_update()
124 static void sha1_final(EVP_MD_CTX *ctx, uint8_t *md) { in sha1_final()
136 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/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.c69 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in do_sigver_init()
106 int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestSignInit()
111 int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in EVP_DigestVerifyInit()
116 int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestSignUpdate()
120 int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t len) { in EVP_DigestVerifyUpdate()
124 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig, in EVP_DigestSignFinal()
127 EVP_MD_CTX tmp_ctx; in EVP_DigestSignFinal()
145 int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, in EVP_DigestVerifyFinal()
147 EVP_MD_CTX tmp_ctx; in EVP_DigestVerifyFinal()
Dalgorithm.c69 int EVP_DigestSignAlgorithm(EVP_MD_CTX *ctx, X509_ALGOR *algor) { in EVP_DigestSignAlgorithm()
113 int EVP_DigestVerifyInitFromAlgorithm(EVP_MD_CTX *ctx, in EVP_DigestVerifyInitFromAlgorithm()
Dinternal.h137 int (*digest_verify_init_from_algorithm)(EVP_MD_CTX *ctx,
141 EVP_MD_CTX *ctx,
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLMessageDigestJDK.java27 private final NativeRef.EVP_MD_CTX ctx;
55 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in OpenSSLMessageDigestJDK()
59 private OpenSSLMessageDigestJDK(long evp_md, int size, NativeRef.EVP_MD_CTX ctx, in OpenSSLMessageDigestJDK()
69 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in ensureDigestInitializedInContext()
80 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineReset()
207 NativeRef.EVP_MD_CTX ctxCopy = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in clone()
DNativeCrypto.java226 public static native void EVP_MD_CTX_cleanup(NativeRef.EVP_MD_CTX ctx); in EVP_MD_CTX_cleanup()
230 public static native int EVP_MD_CTX_copy_ex(NativeRef.EVP_MD_CTX dst_ctx, in EVP_MD_CTX_copy_ex()
231 NativeRef.EVP_MD_CTX src_ctx); in EVP_MD_CTX_copy_ex()
235 public static native int EVP_DigestInit_ex(NativeRef.EVP_MD_CTX ctx, long evp_md); in EVP_DigestInit_ex()
237 public static native void EVP_DigestUpdate(NativeRef.EVP_MD_CTX ctx, in EVP_DigestUpdate()
240 public static native void EVP_DigestUpdateDirect(NativeRef.EVP_MD_CTX ctx, in EVP_DigestUpdateDirect()
243 public static native int EVP_DigestFinal_ex(NativeRef.EVP_MD_CTX ctx, byte[] hash, in EVP_DigestFinal_ex()
248 public static native long EVP_DigestSignInit(NativeRef.EVP_MD_CTX ctx, in EVP_DigestSignInit()
251 public static native long EVP_DigestVerifyInit(NativeRef.EVP_MD_CTX ctx, in EVP_DigestVerifyInit()
254 public static native void EVP_DigestSignUpdate(NativeRef.EVP_MD_CTX ctx, in EVP_DigestSignUpdate()
[all …]
DOpenSSLSignature.java44 private NativeRef.EVP_MD_CTX ctx;
87 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()
238 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineSign()
254 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineVerify()
DNativeRef.java108 public static class EVP_MD_CTX extends NativeRef { class in NativeRef
109 public EVP_MD_CTX(long ctx) { in EVP_MD_CTX() method in NativeRef.EVP_MD_CTX
/external/openssh/
Dmd-sha256.c40 ssh_sha256_init(EVP_MD_CTX *ctxt) in ssh_sha256_init()
47 ssh_sha256_update(EVP_MD_CTX *ctxt, const void *data, unsigned long len) in ssh_sha256_update()
54 ssh_sha256_final(EVP_MD_CTX *ctxt, unsigned char *digest) in ssh_sha256_final()
61 ssh_sha256_cleanup(EVP_MD_CTX *ctxt) in ssh_sha256_cleanup()
/external/tpm2/
DOsslCryptoEngine.h47 void (*init)(EVP_MD_CTX *ctx);
50 void (*update)(EVP_MD_CTX *ctx, const void *data, size_t count);
53 void (*final)(EVP_MD_CTX *ctx, uint8_t *out);
DCpriHash.c15 EVP_MD_CTX context;
83 EVP_MD_CTX *ctxt, // IN: Context to marshal in MarshalHashState()
104 EVP_MD_CTX *ctxt, // OUT: The context structure to receive the in GetHashState()
305 EVP_MD_CTX localState; in _cpri__StartHash()
308 EVP_MD_CTX *context; in _cpri__StartHash()
360 EVP_MD_CTX localContext; in _cpri__UpdateHash()
363 EVP_MD_CTX *context; in _cpri__UpdateHash()
411 EVP_MD_CTX localState; in _cpri__CompleteHash()
414 EVP_MD_CTX *context; in _cpri__CompleteHash()
509 EVP_MD_CTX hashContext; in _cpri__HashBlock()
[all …]
/external/libchrome/crypto/
Dsignature_creator.h18 typedef struct env_md_ctx_st EVP_MD_CTX; typedef
65 EVP_MD_CTX* sign_context_;
/external/boringssl/src/ssl/
Ds3_enc.c172 EVP_MD_CTX md5; in ssl3_prf()
173 EVP_MD_CTX sha1; in ssl3_prf()
249 static int init_digest_with_data(EVP_MD_CTX *ctx, const EVP_MD *md, in init_digest_with_data()
340 EVP_MD_CTX ctx; in ssl3_handshake_mac()
341 const EVP_MD_CTX *ctx_template; in ssl3_handshake_mac()
Dt1_enc.c447 const EVP_MD_CTX *ctx_template; in tls1_cert_verify_mac()
457 EVP_MD_CTX ctx; in tls1_cert_verify_mac()
469 static int append_digest(const EVP_MD_CTX *ctx, uint8_t *out, size_t *out_len, in append_digest()
472 EVP_MD_CTX ctx_copy; in append_digest()
/external/boringssl/src/crypto/x509/
Da_sign.c72 EVP_MD_CTX ctx; in ASN1_item_sign()
85 ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx) in ASN1_item_sign_ctx()
Da_verify.c77 EVP_MD_CTX ctx; in ASN1_item_verify()
/external/boringssl/src/tool/
Ddigest.cc133 EVP_MD_CTX ctx; in SumFile()
135 std::unique_ptr<EVP_MD_CTX, func_delete<EVP_MD_CTX, int, EVP_MD_CTX_cleanup>> in SumFile()
/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.c1069 static int sha256_init(EVP_MD_CTX *ctx) in sha256_init()
1074 static int sha256_update(EVP_MD_CTX *ctx, const void *data, unsigned long count) in sha256_update()
1079 static int sha256_final(EVP_MD_CTX *ctx, unsigned char *md) in sha256_final()
1088 static int sha384_init(EVP_MD_CTX *ctx) in sha384_init()
1093 static int sha384_update(EVP_MD_CTX *ctx, const void *data, unsigned long count) in sha384_update()
1098 static int sha384_final(EVP_MD_CTX *ctx, unsigned char *md) in sha384_final()
1107 static int sha512_init(EVP_MD_CTX *ctx) in sha512_init()
1112 static int sha512_update(EVP_MD_CTX *ctx, const void *data, unsigned long count) in sha512_update()
1117 static int sha512_final(EVP_MD_CTX *ctx, unsigned char *md) in sha512_final()
/external/webrtc/webrtc/base/
Dopenssldigest.h44 EVP_MD_CTX ctx_;

123