OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* License to copy and use this software is granted provided that it is | 4 /* License to copy and use this software is granted provided that it is |
5 * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface | 5 * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface |
6 * (Cryptoki)" in all material mentioning or referencing this software. | 6 * (Cryptoki)" in all material mentioning or referencing this software. |
7 | 7 |
8 * License is also granted to make and use derivative works provided that | 8 * License is also granted to make and use derivative works provided that |
9 * such works are identified as "derived from the RSA Security Inc. PKCS #11 | 9 * such works are identified as "derived from the RSA Security Inc. PKCS #11 |
10 * Cryptographic Token Interface (Cryptoki)" in all material mentioning or | 10 * Cryptographic Token Interface (Cryptoki)" in all material mentioning or |
(...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 typedef CK_EXTRACT_PARAMS CK_PTR CK_EXTRACT_PARAMS_PTR; | 1780 typedef CK_EXTRACT_PARAMS CK_PTR CK_EXTRACT_PARAMS_PTR; |
1781 | 1781 |
1782 /* CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE is new for v2.10. | 1782 /* CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE is new for v2.10. |
1783 * CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE is used to | 1783 * CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE is used to |
1784 * indicate the Pseudo-Random Function (PRF) used to generate | 1784 * indicate the Pseudo-Random Function (PRF) used to generate |
1785 * key bits using PKCS #5 PBKDF2. */ | 1785 * key bits using PKCS #5 PBKDF2. */ |
1786 typedef CK_ULONG CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE; | 1786 typedef CK_ULONG CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE; |
1787 | 1787 |
1788 typedef CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE CK_PTR CK_PKCS5_PBKD2_PSEUDO_
RANDOM_FUNCTION_TYPE_PTR; | 1788 typedef CK_PKCS5_PBKD2_PSEUDO_RANDOM_FUNCTION_TYPE CK_PTR CK_PKCS5_PBKD2_PSEUDO_
RANDOM_FUNCTION_TYPE_PTR; |
1789 | 1789 |
1790 /* The following PRFs are defined in PKCS #5 v2.0. */ | 1790 /* The following PRFs are defined in PKCS #5 v2.1. */ |
1791 #define CKP_PKCS5_PBKD2_HMAC_SHA1 0x00000001 | 1791 #define CKP_PKCS5_PBKD2_HMAC_SHA1 0x00000001 |
1792 | 1792 #define CKP_PKCS5_PBKD2_HMAC_GOSTR3411 0x00000002 |
| 1793 #define CKP_PKCS5_PBKD2_HMAC_SHA224 0x00000003 |
| 1794 #define CKP_PKCS5_PBKD2_HMAC_SHA256 0x00000004 |
| 1795 #define CKP_PKCS5_PBKD2_HMAC_SHA384 0x00000005 |
| 1796 #define CKP_PKCS5_PBKD2_HMAC_SHA512 0x00000006 |
| 1797 #define CKP_PKCS5_PBKD2_HMAC_SHA512_224 0x00000007 |
| 1798 #define CKP_PKCS5_PBKD2_HMAC_SHA512_256 0x00000008 |
1793 | 1799 |
1794 /* CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE is new for v2.10. | 1800 /* CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE is new for v2.10. |
1795 * CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE is used to indicate the | 1801 * CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE is used to indicate the |
1796 * source of the salt value when deriving a key using PKCS #5 | 1802 * source of the salt value when deriving a key using PKCS #5 |
1797 * PBKDF2. */ | 1803 * PBKDF2. */ |
1798 typedef CK_ULONG CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE; | 1804 typedef CK_ULONG CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE; |
1799 | 1805 |
1800 typedef CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE CK_PTR CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE
_PTR; | 1806 typedef CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE CK_PTR CK_PKCS5_PBKDF2_SALT_SOURCE_TYPE
_PTR; |
1801 | 1807 |
1802 /* The following salt value sources are defined in PKCS #5 v2.0. */ | 1808 /* The following salt value sources are defined in PKCS #5 v2.0. */ |
(...skipping 28 matching lines...) Expand all Loading... |
1831 /* stuff that for historic reasons is in this header file but should have | 1837 /* stuff that for historic reasons is in this header file but should have |
1832 * been in pkcs11n.h */ | 1838 * been in pkcs11n.h */ |
1833 #define CKK_INVALID_KEY_TYPE 0xffffffff | 1839 #define CKK_INVALID_KEY_TYPE 0xffffffff |
1834 | 1840 |
1835 #include "pkcs11n.h" | 1841 #include "pkcs11n.h" |
1836 | 1842 |
1837 /* undo packing */ | 1843 /* undo packing */ |
1838 #include "pkcs11u.h" | 1844 #include "pkcs11u.h" |
1839 | 1845 |
1840 #endif | 1846 #endif |
OLD | NEW |