aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/aesGladman/pwd2key.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/aesGladman/pwd2key.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/aesGladman/pwd2key.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/aesGladman/pwd2key.h b/src/others/irrlicht-1.8.1/source/Irrlicht/aesGladman/pwd2key.h
new file mode 100644
index 0000000..f5248ad
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/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
40void 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