diff options
Diffstat (limited to 'src/daemon/https/lgl/rijndael-api-fst.h')
-rw-r--r-- | src/daemon/https/lgl/rijndael-api-fst.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/daemon/https/lgl/rijndael-api-fst.h b/src/daemon/https/lgl/rijndael-api-fst.h index 088e6bfd..893021fc 100644 --- a/src/daemon/https/lgl/rijndael-api-fst.h +++ b/src/daemon/https/lgl/rijndael-api-fst.h | |||
@@ -138,7 +138,7 @@ typedef struct | |||
138 | 128, 192 or 256. Returns 0 on success, or an error code. */ | 138 | 128, 192 or 256. Returns 0 on success, or an error code. */ |
139 | extern rijndael_rc | 139 | extern rijndael_rc |
140 | MHD_rijndaelMakeKey (rijndaelKeyInstance * key, rijndael_direction direction, | 140 | MHD_rijndaelMakeKey (rijndaelKeyInstance * key, rijndael_direction direction, |
141 | size_t keyLen, const char *keyMaterial); | 141 | size_t keyLen, const char *keyMaterial); |
142 | 142 | ||
143 | /* Initialize cipher state CIPHER for encryption MODE (e.g., | 143 | /* Initialize cipher state CIPHER for encryption MODE (e.g., |
144 | RIJNDAEL_MODE_CBC) with initialization vector IV, a hex string of | 144 | RIJNDAEL_MODE_CBC) with initialization vector IV, a hex string of |
@@ -146,7 +146,7 @@ MHD_rijndaelMakeKey (rijndaelKeyInstance * key, rijndael_direction direction, | |||
146 | not need an IV (i.e., RIJNDAEL_MODE_ECB). */ | 146 | not need an IV (i.e., RIJNDAEL_MODE_ECB). */ |
147 | extern rijndael_rc | 147 | extern rijndael_rc |
148 | MHD_MHD_rijndaelCipherInit (rijndaelCipherInstance * cipher, | 148 | MHD_MHD_rijndaelCipherInit (rijndaelCipherInstance * cipher, |
149 | rijndael_mode mode, const char *IV); | 149 | rijndael_mode mode, const char *IV); |
150 | 150 | ||
151 | /* Encrypt data in INPUT, of INPUTLEN/8 bytes length, placing the | 151 | /* Encrypt data in INPUT, of INPUTLEN/8 bytes length, placing the |
152 | output in the pre-allocated OUTBUFFER which must hold at least | 152 | output in the pre-allocated OUTBUFFER which must hold at least |
@@ -157,8 +157,9 @@ MHD_MHD_rijndaelCipherInit (rijndaelCipherInstance * cipher, | |||
157 | negative rijndael_rc error code. */ | 157 | negative rijndael_rc error code. */ |
158 | extern int | 158 | extern int |
159 | MHD_rijndaelBlockEncrypt (rijndaelCipherInstance * cipher, | 159 | MHD_rijndaelBlockEncrypt (rijndaelCipherInstance * cipher, |
160 | const rijndaelKeyInstance * key, | 160 | const rijndaelKeyInstance * key, |
161 | const char *input, size_t inputLen, char *outBuffer); | 161 | const char *input, size_t inputLen, |
162 | char *outBuffer); | ||
162 | 163 | ||
163 | /* Encrypt data in INPUT, of INPUTOCTETS bytes length, placing the | 164 | /* Encrypt data in INPUT, of INPUTOCTETS bytes length, placing the |
164 | output in the pre-allocated OUTBUFFER which must hold at least | 165 | output in the pre-allocated OUTBUFFER which must hold at least |
@@ -171,8 +172,9 @@ MHD_rijndaelBlockEncrypt (rijndaelCipherInstance * cipher, | |||
171 | negative rijndael_rc error code. */ | 172 | negative rijndael_rc error code. */ |
172 | extern int | 173 | extern int |
173 | MHD_rijndaelPadEncrypt (rijndaelCipherInstance * cipher, | 174 | MHD_rijndaelPadEncrypt (rijndaelCipherInstance * cipher, |
174 | const rijndaelKeyInstance * key, | 175 | const rijndaelKeyInstance * key, |
175 | const char *input, size_t inputOctets, char *outBuffer); | 176 | const char *input, size_t inputOctets, |
177 | char *outBuffer); | ||
176 | 178 | ||
177 | /* Decrypt data in INPUT, of INPUTLEN/8 bytes length, placing the | 179 | /* Decrypt data in INPUT, of INPUTLEN/8 bytes length, placing the |
178 | output in the pre-allocated OUTBUFFER which must hold at least | 180 | output in the pre-allocated OUTBUFFER which must hold at least |
@@ -183,8 +185,9 @@ MHD_rijndaelPadEncrypt (rijndaelCipherInstance * cipher, | |||
183 | negative rijndael_rc error code. */ | 185 | negative rijndael_rc error code. */ |
184 | extern int | 186 | extern int |
185 | MHD_rijndaelBlockDecrypt (rijndaelCipherInstance * cipher, | 187 | MHD_rijndaelBlockDecrypt (rijndaelCipherInstance * cipher, |
186 | const rijndaelKeyInstance * key, | 188 | const rijndaelKeyInstance * key, |
187 | const char *input, size_t inputLen, char *outBuffer); | 189 | const char *input, size_t inputLen, |
190 | char *outBuffer); | ||
188 | 191 | ||
189 | /* Decrypt data in INPUT, of INPUTOCTETS bytes length, placing the | 192 | /* Decrypt data in INPUT, of INPUTOCTETS bytes length, placing the |
190 | output in the pre-allocated OUTBUFFER which must hold at least | 193 | output in the pre-allocated OUTBUFFER which must hold at least |
@@ -197,7 +200,8 @@ MHD_rijndaelBlockDecrypt (rijndaelCipherInstance * cipher, | |||
197 | negative rijndael_rc error code. */ | 200 | negative rijndael_rc error code. */ |
198 | extern int | 201 | extern int |
199 | MHD_rijndaelPadDecrypt (rijndaelCipherInstance * cipher, | 202 | MHD_rijndaelPadDecrypt (rijndaelCipherInstance * cipher, |
200 | const rijndaelKeyInstance * key, | 203 | const rijndaelKeyInstance * key, |
201 | const char *input, size_t inputOctets, char *outBuffer); | 204 | const char *input, size_t inputOctets, |
205 | char *outBuffer); | ||
202 | 206 | ||
203 | #endif /* __RIJNDAEL_API_FST_H */ | 207 | #endif /* __RIJNDAEL_API_FST_H */ |