]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/openssl/modes.h
Deprecate the low level Diffie-Hellman functions.
[thirdparty/openssl.git] / include / openssl / modes.h
index 6b756847f8d9fee3dd824c5aa4e6dcf69d500f78..e19079912ba24f1876016db92efd475cbeb375b8 100644 (file)
@@ -9,6 +9,12 @@
 
 #ifndef OPENSSL_MODES_H
 # define OPENSSL_MODES_H
+# pragma once
+
+# include <openssl/macros.h>
+# ifndef OPENSSL_NO_DEPRECATED_3_0
+#  define HEADER_MODES_H
+# endif
 
 # include <stddef.h>
 # include <openssl/types.h>
@@ -23,6 +29,10 @@ typedef void (*cbc128_f) (const unsigned char *in, unsigned char *out,
                           size_t len, const void *key,
                           unsigned char ivec[16], int enc);
 
+typedef void (*ecb128_f) (const unsigned char *in, unsigned char *out,
+                          size_t len, const void *key,
+                          int enc);
+
 typedef void (*ctr128_f) (const unsigned char *in, unsigned char *out,
                           size_t blocks, const void *key,
                           const unsigned char ivec[16]);