Thu, 29 May 2025 15:17:01 +0200
add sha512 hashing functions
|
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__ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
37 | /* macos */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
38 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
39 | #define WS_CRYPTO_COMMON_CRYPTO |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
40 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
41 | #define WS_AES_CTX CCCryptorRef |
| 587 | 42 | #define WS_SHA1_CTX CC_SHA1_CTX |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
43 | #define WS_SHA256_CTX CC_SHA256_CTX |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
44 | #define WS_SHA512_CTX CC_SHA512_CTX |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
45 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
46 | #include <CommonCrypto/CommonCrypto.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
47 | #include <CommonCrypto/CommonDigest.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
48 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
49 | #elif defined(_WIN32) |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
50 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
51 | #define WS_CRYPTO_CNG |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
52 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
53 | #include <windows.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
54 | #include <bcrypt.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
55 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
56 | typedef struct WinBCryptCTX { |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
57 | BCRYPT_ALG_HANDLE hAlg; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
58 | BCRYPT_KEY_HANDLE hKey; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
59 | void *pbKeyObject; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
60 | unsigned char pbIV[16]; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
61 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
62 | unsigned char buf[16]; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
63 | ULONG buflen; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
64 | } WinBCryptCTX; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
65 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
66 | typedef struct WinBCryptSHACTX { |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
67 | BCRYPT_ALG_HANDLE hAlg; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
68 | BCRYPT_HASH_HANDLE hHash; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
69 | void *pbHashObject; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
70 | } WinBCryptSHACTX; |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
71 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
72 | #define WS_AES_CTX WinBCryptCTX |
| 587 | 73 | #define WS_SHA1_CTX WinBCryptSHACTX |
| 74 | #define WS_SHA256_CTX WinBCryptSHACTX | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
75 | #define WS_SHA512_CTX WinBCryptSHACTX |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
76 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
77 | #else |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
78 | /* unix/linux */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
79 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
80 | #include <openssl/evp.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
81 | #include <openssl/rand.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
82 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
83 | #define WS_USE_OPENSSL |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
84 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
85 | #if OPENSSL_VERSION_NUMBER < 0x30000000L |
| 587 | 86 | #define WS_SHA256_CTX SHA1_CTX |
| 87 | #define WS_SHA256_CTX SHA256_CTX | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
88 | #define WS_SHA512_CTX SHA512_CTX |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
89 | #else |
| 587 | 90 | #define WS_SHA1_CTX EVP_MD_CTX* |
| 91 | #define WS_SHA256_CTX EVP_MD_CTX* | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
92 | #define WS_SHA512_CTX EVP_MD_CTX* |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
93 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
94 | |
|
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 | #if defined(__sun) && defined(__SunOS_5_10) |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
97 | #include <sha2.h> |
| 587 | 98 | #define SHA_Init SHAInit |
| 99 | #define SHA_Update SHAUpdate | |
| 100 | #define SHA_Final SHAFinal | |
| 101 | ||
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
102 | #define SHA256_Init SHA256Init |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
103 | #define SHA256_Update SHA256Update |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
104 | #define SHA256_Final SHA256Final |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
105 | |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
106 | #define SHA512_Init SHA512Init |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
107 | #define SHA512_Update SHA512Update |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
108 | #define SHA512_Final SHA512Final |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
109 | #else |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
110 | #include <openssl/sha.h> |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
111 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
112 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
113 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
114 | |
| 587 | 115 | int ws_sha1_init(WS_SHA1_CTX *ctx); |
| 116 | WS_SHA1_CTX* ws_sha1_create(void); | |
| 117 | void ws_sha1_update(WS_SHA1_CTX *ctx, const char *data, size_t len); | |
| 118 | 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
|
119 | |
| 587 | 120 | int ws_sha256_init(WS_SHA256_CTX *ctx); |
| 121 | WS_SHA256_CTX* ws_sha256_create(void); | |
| 122 | void ws_sha256_update(WS_SHA256_CTX *ctx, const char *data, size_t len); | |
| 123 | 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
|
124 | |
|
589
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
125 | int ws_sha512_init(WS_SHA512_CTX *ctx); |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
126 | WS_SHA512_CTX* ws_sha512_create(void); |
|
70ad04769cbf
add sha512 hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
587
diff
changeset
|
127 | 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
|
128 | 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
|
129 | |
|
586
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
130 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
131 | #ifdef __cplusplus |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
132 | } |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
133 | #endif |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
134 | |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
135 | #endif /* HASHING_H */ |
|
9861e8ceaf96
add wrapper for openssl hashing functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
136 |