/external/boringssl/src/include/openssl/ |
D | digest.h | 107 OPENSSL_EXPORT void EVP_MD_CTX_init(EVP_MD_CTX *ctx); 112 OPENSSL_EXPORT EVP_MD_CTX *EVP_MD_CTX_new(void); 116 OPENSSL_EXPORT int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx); 119 OPENSSL_EXPORT void EVP_MD_CTX_free(EVP_MD_CTX *ctx); 123 OPENSSL_EXPORT int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in); 127 OPENSSL_EXPORT int EVP_MD_CTX_reset(EVP_MD_CTX *ctx); 135 OPENSSL_EXPORT int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, 140 OPENSSL_EXPORT int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type); 144 OPENSSL_EXPORT int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, 162 OPENSSL_EXPORT int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, uint8_t *md_out, [all …]
|
D | evp.h | 260 OPENSSL_EXPORT int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 270 OPENSSL_EXPORT int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, 285 OPENSSL_EXPORT int EVP_DigestSignFinal(EVP_MD_CTX *ctx, uint8_t *out_sig, 295 OPENSSL_EXPORT int EVP_DigestSign(EVP_MD_CTX *ctx, uint8_t *out_sig, 316 OPENSSL_EXPORT int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 326 OPENSSL_EXPORT int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, 336 OPENSSL_EXPORT int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, 341 OPENSSL_EXPORT int EVP_DigestVerify(EVP_MD_CTX *ctx, const uint8_t *sig, 354 OPENSSL_EXPORT int EVP_SignInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, 360 OPENSSL_EXPORT int EVP_SignInit(EVP_MD_CTX *ctx, const EVP_MD *type); [all …]
|
D | hmac.h | 160 EVP_MD_CTX md_ctx; 161 EVP_MD_CTX i_ctx; 162 EVP_MD_CTX o_ctx;
|
/external/boringssl/src/crypto/fipsmodule/digest/ |
D | digest.c | 78 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_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in) { in EVP_MD_CTX_copy_ex() 164 int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in) { in EVP_MD_CTX_copy() [all …]
|
D | digests.c | 78 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 …]
|
D | internal.h | 79 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/ |
D | sign.c | 65 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()
|
D | digestsign.c | 74 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/ |
D | OpenSSLMessageDigestJDK.java | 28 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()
|
D | OpenSSLSignature.java | 45 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()
|
D | NativeCrypto.java | 216 static native void EVP_MD_CTX_cleanup(NativeRef.EVP_MD_CTX ctx); in EVP_MD_CTX_cleanup() 221 NativeRef.EVP_MD_CTX dst_ctx, NativeRef.EVP_MD_CTX src_ctx); in EVP_MD_CTX_copy_ex() 225 static native int EVP_DigestInit_ex(NativeRef.EVP_MD_CTX ctx, long evp_md); in EVP_DigestInit_ex() 228 NativeRef.EVP_MD_CTX ctx, byte[] buffer, int offset, int length); in EVP_DigestUpdate() 230 static native void EVP_DigestUpdateDirect(NativeRef.EVP_MD_CTX ctx, long ptr, int length); in EVP_DigestUpdateDirect() 232 static native int EVP_DigestFinal_ex(NativeRef.EVP_MD_CTX ctx, byte[] hash, int offset); in EVP_DigestFinal_ex() 237 NativeRef.EVP_MD_CTX ctx, long evpMdRef, NativeRef.EVP_PKEY key); in EVP_DigestSignInit() 240 NativeRef.EVP_MD_CTX ctx, long evpMdRef, NativeRef.EVP_PKEY key); in EVP_DigestVerifyInit() 243 NativeRef.EVP_MD_CTX ctx, byte[] buffer, int offset, int length); in EVP_DigestSignUpdate() 245 static native void EVP_DigestSignUpdateDirect(NativeRef.EVP_MD_CTX ctx, long ptr, int length); in EVP_DigestSignUpdateDirect() [all …]
|
D | NativeRef.java | 94 static final class EVP_MD_CTX extends NativeRef { class in NativeRef 95 EVP_MD_CTX(long nativePointer) { in EVP_MD_CTX() method in NativeRef.EVP_MD_CTX
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLMessageDigestJDK.java | 31 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()
|
D | OpenSSLSignature.java | 48 private NativeRef.EVP_MD_CTX ctx; 91 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in resetContext() 119 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate() 161 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate() 227 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineSign() 248 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineVerify()
|
D | NativeCrypto.java | 227 static native void EVP_MD_CTX_cleanup(NativeRef.EVP_MD_CTX ctx); in EVP_MD_CTX_cleanup() 233 NativeRef.EVP_MD_CTX dst_ctx, NativeRef.EVP_MD_CTX src_ctx); in EVP_MD_CTX_copy_ex() 237 static native int EVP_DigestInit_ex(NativeRef.EVP_MD_CTX ctx, long evp_md); in EVP_DigestInit_ex() 240 NativeRef.EVP_MD_CTX ctx, byte[] buffer, int offset, int length); in EVP_DigestUpdate() 242 static native void EVP_DigestUpdateDirect(NativeRef.EVP_MD_CTX ctx, long ptr, int length); in EVP_DigestUpdateDirect() 244 static native int EVP_DigestFinal_ex(NativeRef.EVP_MD_CTX ctx, byte[] hash, int offset); in EVP_DigestFinal_ex() 249 NativeRef.EVP_MD_CTX ctx, long evpMdRef, NativeRef.EVP_PKEY key); in EVP_DigestSignInit() 252 NativeRef.EVP_MD_CTX ctx, long evpMdRef, NativeRef.EVP_PKEY key); in EVP_DigestVerifyInit() 255 NativeRef.EVP_MD_CTX ctx, byte[] buffer, int offset, int length); in EVP_DigestSignUpdate() 257 static native void EVP_DigestSignUpdateDirect(NativeRef.EVP_MD_CTX ctx, long ptr, int length); in EVP_DigestSignUpdateDirect() [all …]
|
D | NativeRef.java | 95 static final class EVP_MD_CTX extends NativeRef { class in NativeRef 96 EVP_MD_CTX(long nativePointer) { in EVP_MD_CTX() method in NativeRef.EVP_MD_CTX
|
/external/boringssl/src/crypto/x509/ |
D | internal.h | 33 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,
|
D | a_sign.c | 71 EVP_MD_CTX ctx; in ASN1_item_sign() 82 ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx) in ASN1_item_sign_ctx()
|
D | algorithm.c | 68 int x509_digest_sign_algorithm(EVP_MD_CTX *ctx, X509_ALGOR *algor) { in x509_digest_sign_algorithm() 113 int x509_digest_verify_init(EVP_MD_CTX *ctx, X509_ALGOR *sigalg, in x509_digest_verify_init()
|
/external/openssh/ |
D | md-sha256.c | 40 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/libchrome/crypto/ |
D | signature_creator.h | 18 typedef struct env_md_ctx_st EVP_MD_CTX; typedef 60 EVP_MD_CTX* sign_context_;
|
/external/python/cpython2/Modules/ |
D | _hashopenssl.c | 74 EVP_MD_CTX *ctx; /* OpenSSL message digest context */ 86 static EVP_MD_CTX *CONST_new_ ## Name ## _ctx_p = NULL; 184 locked_EVP_MD_CTX_copy(EVP_MD_CTX *new_ctx_p, EVPobject *self) in locked_EVP_MD_CTX_copy() 220 EVP_MD_CTX *temp_ctx; in EVP_digest() 248 EVP_MD_CTX *temp_ctx; in EVP_hexdigest() 495 const EVP_MD *digest, const EVP_MD_CTX *initial_ctx, in EVPnew()
|
/external/python/cpython3/Modules/ |
D | _hashopenssl.c | 56 EVP_MD_CTX *ctx; /* OpenSSL message digest context */ 66 static EVP_MD_CTX *CONST_new_ ## Name ## _ctx_p = NULL; 162 locked_EVP_MD_CTX_copy(EVP_MD_CTX *new_ctx_p, EVPobject *self) in locked_EVP_MD_CTX_copy() 198 EVP_MD_CTX *temp_ctx; in EVP_digest() 229 EVP_MD_CTX *temp_ctx; in EVP_hexdigest() 455 const EVP_MD *digest, const EVP_MD_CTX *initial_ctx, in EVPnew() 989 EVP_MD_CTX *ctx_p = EVP_MD_CTX_new(); \
|
/external/boringssl/src/ssl/ |
D | ssl_transcript.cc | 162 static bool InitDigestWithData(EVP_MD_CTX *ctx, const EVP_MD *md, in InitDigestWithData() 208 bool SSLTranscript::CopyHashContext(EVP_MD_CTX *ctx) { in CopyHashContext()
|
/external/ipsec-tools/src/racoon/missing/crypto/sha2/ |
D | sha2.c | 1069 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()
|