Sun, 01 Jun 2025 21:48:22 +0200
fix build with openssl version < 3.0
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
1 | /* |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
3 | * |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
4 | * Copyright 2025 Olaf Wintermann. All rights reserved. |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
5 | * |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
6 | * Redistribution and use in source and binary forms, with or without |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
7 | * modification, are permitted provided that the following conditions are met: |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
8 | * |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
9 | * 1. Redistributions of source code must retain the above copyright |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
10 | * notice, this list of conditions and the following disclaimer. |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
11 | * |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
12 | * 2. Redistributions in binary form must reproduce the above copyright |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
13 | * notice, this list of conditions and the following disclaimer in the |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
14 | * documentation and/or other materials provided with the distribution. |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
15 | * |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
26 | * POSSIBILITY OF SUCH DAMAGE. |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
27 | */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
28 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
29 | #ifndef HASHING_H |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
30 | #define HASHING_H |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
31 | |
| 587 | 32 | #define WS_SHA1_DIGEST_LENGTH 20 |
| 33 | #define WS_SHA256_DIGEST_LENGTH 32 | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
34 | #define WS_SHA512_DIGEST_LENGTH 32 |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
35 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
36 | #ifdef __APPLE__ |
|
594
36a46311e0f6
add common crypto hashing implementation for macOS
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
589
diff
changeset
|
37 | #define WS_USE_CRYPTO_COMMON |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
38 | /* macos */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
39 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
40 | #define WS_CRYPTO_COMMON_CRYPTO |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
41 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
42 | #define WS_AES_CTX CCCryptorRef |
| 587 | 43 | #define WS_SHA1_CTX CC_SHA1_CTX |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
44 | #define WS_SHA256_CTX CC_SHA256_CTX |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
45 | #define WS_SHA512_CTX CC_SHA512_CTX |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
46 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
47 | #include <CommonCrypto/CommonCrypto.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
48 | #include <CommonCrypto/CommonDigest.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
49 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
50 | #elif defined(_WIN32) |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
51 | |
|
594
36a46311e0f6
add common crypto hashing implementation for macOS
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
589
diff
changeset
|
52 | #define WS_USE_CRYPTO_CNG |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
53 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
54 | #include <windows.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
55 | #include <bcrypt.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
56 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
57 | typedef struct WinBCryptCTX { |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
58 | BCRYPT_ALG_HANDLE hAlg; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
59 | BCRYPT_KEY_HANDLE hKey; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
60 | void *pbKeyObject; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
61 | unsigned char pbIV[16]; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
62 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
63 | unsigned char buf[16]; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
64 | ULONG buflen; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
65 | } WinBCryptCTX; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
66 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
67 | typedef struct WinBCryptSHACTX { |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
68 | BCRYPT_ALG_HANDLE hAlg; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
69 | BCRYPT_HASH_HANDLE hHash; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
70 | void *pbHashObject; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
71 | } WinBCryptSHACTX; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
72 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
73 | #define WS_AES_CTX WinBCryptCTX |
| 587 | 74 | #define WS_SHA1_CTX WinBCryptSHACTX |
| 75 | #define WS_SHA256_CTX WinBCryptSHACTX | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
76 | #define WS_SHA512_CTX WinBCryptSHACTX |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
77 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
78 | #else |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
79 | /* unix/linux */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
80 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
81 | #include <openssl/evp.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
82 | #include <openssl/rand.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
83 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
84 | #define WS_USE_OPENSSL |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
85 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
86 | #if OPENSSL_VERSION_NUMBER < 0x30000000L |
|
603
5879ecf25aa9
fix build with openssl version < 3.0
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
594
diff
changeset
|
87 | #define WS_SHA1_CTX SHA1_CTX |
| 587 | 88 | #define WS_SHA256_CTX SHA256_CTX |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
89 | #define WS_SHA512_CTX SHA512_CTX |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
90 | #else |
| 587 | 91 | #define WS_SHA1_CTX EVP_MD_CTX* |
| 92 | #define WS_SHA256_CTX EVP_MD_CTX* | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
93 | #define WS_SHA512_CTX EVP_MD_CTX* |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
94 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
95 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
96 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
97 | #if defined(__sun) && defined(__SunOS_5_10) |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
98 | #include <sha2.h> |
| 587 | 99 | #define SHA_Init SHAInit |
| 100 | #define SHA_Update SHAUpdate | |
| 101 | #define SHA_Final SHAFinal | |
| 102 | ||
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
103 | #define SHA256_Init SHA256Init |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
104 | #define SHA256_Update SHA256Update |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
105 | #define SHA256_Final SHA256Final |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
106 | |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
107 | #define SHA512_Init SHA512Init |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
108 | #define SHA512_Update SHA512Update |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
109 | #define SHA512_Final SHA512Final |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
110 | #else |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
111 | #include <openssl/sha.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
112 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
113 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
114 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
115 | |
| 587 | 116 | int ws_sha1_init(WS_SHA1_CTX *ctx); |
| 117 | WS_SHA1_CTX* ws_sha1_create(void); | |
| 118 | void ws_sha1_update(WS_SHA1_CTX *ctx, const char *data, size_t len); | |
| 119 | void ws_sha1_final(WS_SHA1_CTX *ctx, unsigned char *buf); | |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
120 | |
| 587 | 121 | int ws_sha256_init(WS_SHA256_CTX *ctx); |
| 122 | WS_SHA256_CTX* ws_sha256_create(void); | |
| 123 | void ws_sha256_update(WS_SHA256_CTX *ctx, const char *data, size_t len); | |
| 124 | void ws_sha256_final(WS_SHA256_CTX *ctx, unsigned char *buf); | |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
125 | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
126 | int ws_sha512_init(WS_SHA512_CTX *ctx); |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
127 | WS_SHA512_CTX* ws_sha512_create(void); |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
128 | void ws_sha512_update(WS_SHA512_CTX *ctx, const char *data, size_t len); |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
129 | void ws_sha512_final(WS_SHA512_CTX *ctx, unsigned char *buf); |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
130 | |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
131 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
132 | #ifdef __cplusplus |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
133 | } |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
134 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
135 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
136 | #endif /* HASHING_H */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
137 |