diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h b/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h new file mode 100644 index 0000000..f5248ad --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/aesGladman/pwd2key.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | --------------------------------------------------------------------------- | ||
3 | Copyright (c) 2002, Dr Brian Gladman < >, Worcester, UK. | ||
4 | All rights reserved. | ||
5 | |||
6 | LICENSE TERMS | ||
7 | |||
8 | The free distribution and use of this software in both source and binary | ||
9 | form is allowed (with or without changes) provided that: | ||
10 | |||
11 | 1. distributions of this source code include the above copyright | ||
12 | notice, this list of conditions and the following disclaimer; | ||
13 | |||
14 | 2. distributions in binary form include the above copyright | ||
15 | notice, this list of conditions and the following disclaimer | ||
16 | in the documentation and/or other associated materials; | ||
17 | |||
18 | 3. the copyright holder's name is not used to endorse products | ||
19 | built using this software without specific written permission. | ||
20 | |||
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), | ||
23 | in which case the provisions of the GPL apply INSTEAD OF those given above. | ||
24 | |||
25 | DISCLAIMER | ||
26 | |||
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 | ||
29 | and/or fitness for purpose. | ||
30 | --------------------------------------------------------------------------- | ||
31 | Issue Date: 26/08/2003 | ||
32 | |||
33 | This is an implementation of RFC2898, which specifies key derivation from | ||
34 | a password and a salt value. | ||
35 | */ | ||
36 | |||
37 | #ifndef PWD2KEY_H | ||
38 | #define PWD2KEY_H | ||
39 | |||
40 | void derive_key( | ||
41 | const unsigned char pwd[], /* the PASSWORD, and */ | ||
42 | unsigned int pwd_len, /* its length */ | ||
43 | const unsigned char salt[], /* the SALT and its */ | ||
44 | unsigned int salt_len, /* length */ | ||
45 | unsigned int iter, /* the number of iterations */ | ||
46 | unsigned char key[], /* space for the output key */ | ||
47 | unsigned int key_len); /* and its required length */ | ||
48 | |||
49 | #endif | ||
50 | |||