diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h b/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h index f5248ad..3c27c08 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h | |||
@@ -1,50 +1,50 @@ | |||
1 | /* | 1 | /* |
2 | --------------------------------------------------------------------------- | 2 | --------------------------------------------------------------------------- |
3 | Copyright (c) 2002, Dr Brian Gladman < >, Worcester, UK. | 3 | Copyright (c) 2002, Dr Brian Gladman < >, Worcester, UK. |
4 | All rights reserved. | 4 | All rights reserved. |
5 | 5 | ||
6 | LICENSE TERMS | 6 | LICENSE TERMS |
7 | 7 | ||
8 | The free distribution and use of this software in both source and binary | 8 | The free distribution and use of this software in both source and binary |
9 | form is allowed (with or without changes) provided that: | 9 | form is allowed (with or without changes) provided that: |
10 | 10 | ||
11 | 1. distributions of this source code include the above copyright | 11 | 1. distributions of this source code include the above copyright |
12 | notice, this list of conditions and the following disclaimer; | 12 | notice, this list of conditions and the following disclaimer; |
13 | 13 | ||
14 | 2. distributions in binary form include the above copyright | 14 | 2. distributions in binary form include the above copyright |
15 | notice, this list of conditions and the following disclaimer | 15 | notice, this list of conditions and the following disclaimer |
16 | in the documentation and/or other associated materials; | 16 | in the documentation and/or other associated materials; |
17 | 17 | ||
18 | 3. the copyright holder's name is not used to endorse products | 18 | 3. the copyright holder's name is not used to endorse products |
19 | built using this software without specific written permission. | 19 | built using this software without specific written permission. |
20 | 20 | ||
21 | ALTERNATIVELY, provided that this notice is retained in full, this product | 21 | ALTERNATIVELY, provided that this notice is retained in full, this product |
22 | may be distributed under the terms of the GNU General Public License (GPL), | 22 | may be distributed under the terms of the GNU General Public License (GPL), |
23 | in which case the provisions of the GPL apply INSTEAD OF those given above. | 23 | in which case the provisions of the GPL apply INSTEAD OF those given above. |
24 | 24 | ||
25 | DISCLAIMER | 25 | DISCLAIMER |
26 | 26 | ||
27 | This software is provided 'as is' with no explicit or implied warranties | 27 | This software is provided 'as is' with no explicit or implied warranties |
28 | in respect of its properties, including, but not limited to, correctness | 28 | in respect of its properties, including, but not limited to, correctness |
29 | and/or fitness for purpose. | 29 | and/or fitness for purpose. |
30 | --------------------------------------------------------------------------- | 30 | --------------------------------------------------------------------------- |
31 | Issue Date: 26/08/2003 | 31 | Issue Date: 26/08/2003 |
32 | 32 | ||
33 | This is an implementation of RFC2898, which specifies key derivation from | 33 | This is an implementation of RFC2898, which specifies key derivation from |
34 | a password and a salt value. | 34 | a password and a salt value. |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #ifndef PWD2KEY_H | 37 | #ifndef PWD2KEY_H |
38 | #define PWD2KEY_H | 38 | #define PWD2KEY_H |
39 | 39 | ||
40 | void derive_key( | 40 | void derive_key( |
41 | const unsigned char pwd[], /* the PASSWORD, and */ | 41 | const unsigned char pwd[], /* the PASSWORD, and */ |
42 | unsigned int pwd_len, /* its length */ | 42 | unsigned int pwd_len, /* its length */ |
43 | const unsigned char salt[], /* the SALT and its */ | 43 | const unsigned char salt[], /* the SALT and its */ |
44 | unsigned int salt_len, /* length */ | 44 | unsigned int salt_len, /* length */ |
45 | unsigned int iter, /* the number of iterations */ | 45 | unsigned int iter, /* the number of iterations */ |
46 | unsigned char key[], /* space for the output key */ | 46 | unsigned char key[], /* space for the output key */ |
47 | unsigned int key_len); /* and its required length */ | 47 | unsigned int key_len); /* and its required length */ |
48 | 48 | ||
49 | #endif | 49 | #endif |
50 | 50 | ||