summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r--src/lib/libcrypto/evp/evp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index c8da89844d..148e15274f 100644
--- a/src/lib/libcrypto/evp/evp.h
+++ b/src/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp.h,v 1.55 2018/02/17 13:47:36 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.56 2018/02/17 14:55:31 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -535,15 +535,19 @@ int EVP_Cipher(EVP_CIPHER_CTX *c, unsigned char *out, const unsigned char *in,
535#define EVP_delete_digest_alias(alias) \ 535#define EVP_delete_digest_alias(alias) \
536 OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS); 536 OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);
537 537
538EVP_MD_CTX *EVP_MD_CTX_new(void);
539void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
538void EVP_MD_CTX_init(EVP_MD_CTX *ctx); 540void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
539int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx); 541int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
540EVP_MD_CTX *EVP_MD_CTX_create(void); 542EVP_MD_CTX *EVP_MD_CTX_create(void);
541void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx); 543void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
544int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);
542int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in); 545int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);
543void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags); 546void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags);
544void EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags); 547void EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags);
545int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr); 548int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr);
546int EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags); 549int EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags);
550
547int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl); 551int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl);
548int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt); 552int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt);
549int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s); 553int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s);