Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: nss/lib/util/pkcs11t.h

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 #define CKM_PBA_SHA1_WITH_SHA1_HMAC 0x000003C0 817 #define CKM_PBA_SHA1_WITH_SHA1_HMAC 0x000003C0
818 818
819 /* WTLS mechanisms are new for v2.20 */ 819 /* WTLS mechanisms are new for v2.20 */
820 #define CKM_WTLS_PRE_MASTER_KEY_GEN 0x000003D0 820 #define CKM_WTLS_PRE_MASTER_KEY_GEN 0x000003D0
821 #define CKM_WTLS_MASTER_KEY_DERIVE 0x000003D1 821 #define CKM_WTLS_MASTER_KEY_DERIVE 0x000003D1
822 #define CKM_WTLS_MASTER_KEY_DERIVE_DH_ECC 0x000003D2 822 #define CKM_WTLS_MASTER_KEY_DERIVE_DH_ECC 0x000003D2
823 #define CKM_WTLS_PRF 0x000003D3 823 #define CKM_WTLS_PRF 0x000003D3
824 #define CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE 0x000003D4 824 #define CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE 0x000003D4
825 #define CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE 0x000003D5 825 #define CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE 0x000003D5
826 826
827 /* TLS 1.2 mechanisms are new for v2.40 */
828 #define CKM_TLS12_MASTER_KEY_DERIVE 0x000003E0
829 #define CKM_TLS12_KEY_AND_MAC_DERIVE 0x000003E1
830 #define CKM_TLS12_MASTER_KEY_DERIVE_DH 0x000003E2
831 #define CKM_TLS12_KEY_SAFE_DERIVE 0x000003E3
832 #define CKM_TLS_MAC 0x000003E4
833 #define CKM_TLS_KDF 0x000003E5
834
827 #define CKM_KEY_WRAP_LYNKS 0x00000400 835 #define CKM_KEY_WRAP_LYNKS 0x00000400
828 #define CKM_KEY_WRAP_SET_OAEP 0x00000401 836 #define CKM_KEY_WRAP_SET_OAEP 0x00000401
829 837
830 /* CKM_CMS_SIG is new for v2.20 */ 838 /* CKM_CMS_SIG is new for v2.20 */
831 #define CKM_CMS_SIG 0x00000500 839 #define CKM_CMS_SIG 0x00000500
832 840
833 /* Fortezza mechanisms */ 841 /* Fortezza mechanisms */
834 #define CKM_SKIPJACK_KEY_GEN 0x00001000 842 #define CKM_SKIPJACK_KEY_GEN 0x00001000
835 #define CKM_SKIPJACK_ECB64 0x00001001 843 #define CKM_SKIPJACK_ECB64 0x00001001
836 #define CKM_SKIPJACK_CBC64 0x00001002 844 #define CKM_SKIPJACK_CBC64 0x00001002
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 CK_BYTE_PTR pSeed; 1649 CK_BYTE_PTR pSeed;
1642 CK_ULONG ulSeedLen; 1650 CK_ULONG ulSeedLen;
1643 CK_BYTE_PTR pLabel; 1651 CK_BYTE_PTR pLabel;
1644 CK_ULONG ulLabelLen; 1652 CK_ULONG ulLabelLen;
1645 CK_BYTE_PTR pOutput; 1653 CK_BYTE_PTR pOutput;
1646 CK_ULONG_PTR pulOutputLen; 1654 CK_ULONG_PTR pulOutputLen;
1647 } CK_TLS_PRF_PARAMS; 1655 } CK_TLS_PRF_PARAMS;
1648 1656
1649 typedef CK_TLS_PRF_PARAMS CK_PTR CK_TLS_PRF_PARAMS_PTR; 1657 typedef CK_TLS_PRF_PARAMS CK_PTR CK_TLS_PRF_PARAMS_PTR;
1650 1658
1659 /* TLS 1.2 is new for version 2.40 */
1660 typedef struct CK_TLS12_MASTER_KEY_DERIVE_PARAMS {
1661 CK_SSL3_RANDOM_DATA RandomInfo;
1662 CK_VERSION_PTR pVersion;
1663 CK_MECHANISM_TYPE prfHashMechanism;
1664 } CK_TLS12_MASTER_KEY_DERIVE_PARAMS;
1665
1666 typedef CK_TLS12_MASTER_KEY_DERIVE_PARAMS CK_PTR \
1667 CK_TLS12_MASTER_KEY_DERIVE_PARAMS_PTR;
1668
1669 typedef struct CK_TLS12_KEY_MAT_PARAMS {
1670 CK_ULONG ulMacSizeInBits;
1671 CK_ULONG ulKeySizeInBits;
1672 CK_ULONG ulIVSizeInBits;
1673 CK_BBOOL bIsExport; /* Unused. Must be set to CK_FALSE. */
1674 CK_SSL3_RANDOM_DATA RandomInfo;
1675 CK_SSL3_KEY_MAT_OUT_PTR pReturnedKeyMaterial;
1676 CK_MECHANISM_TYPE prfHashMechanism;
1677 } CK_TLS12_KEY_MAT_PARAMS;
1678
1679 typedef CK_TLS12_KEY_MAT_PARAMS CK_PTR CK_TLS12_KEY_MAT_PARAMS_PTR;
1680
1681 typedef struct CK_TLS_KDF_PARAMS {
1682 CK_MECHANISM_TYPE prfMechanism;
1683 CK_BYTE_PTR pLabel;
1684 CK_ULONG ulLabelLength;
1685 CK_SSL3_RANDOM_DATA RandomInfo;
1686 CK_BYTE_PTR pContextData;
1687 CK_ULONG ulContextDataLength;
1688 } CK_TLS_KDF_PARAMS;
1689
1690 typedef struct CK_TLS_MAC_PARAMS {
1691 CK_MECHANISM_TYPE prfMechanism;
1692 CK_ULONG ulMacLength;
1693 CK_ULONG ulServerOrClient;
1694 } CK_TLS_MAC_PARAMS;
1695
1696 typedef CK_TLS_MAC_PARAMS CK_PTR CK_TLS_MAC_PARAMS_PTR;
1697
1651 /* WTLS is new for version 2.20 */ 1698 /* WTLS is new for version 2.20 */
1652 typedef struct CK_WTLS_RANDOM_DATA { 1699 typedef struct CK_WTLS_RANDOM_DATA {
1653 CK_BYTE_PTR pClientRandom; 1700 CK_BYTE_PTR pClientRandom;
1654 CK_ULONG ulClientRandomLen; 1701 CK_ULONG ulClientRandomLen;
1655 CK_BYTE_PTR pServerRandom; 1702 CK_BYTE_PTR pServerRandom;
1656 CK_ULONG ulServerRandomLen; 1703 CK_ULONG ulServerRandomLen;
1657 } CK_WTLS_RANDOM_DATA; 1704 } CK_WTLS_RANDOM_DATA;
1658 1705
1659 typedef CK_WTLS_RANDOM_DATA CK_PTR CK_WTLS_RANDOM_DATA_PTR; 1706 typedef CK_WTLS_RANDOM_DATA CK_PTR CK_WTLS_RANDOM_DATA_PTR;
1660 1707
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 /* stuff that for historic reasons is in this header file but should have 1831 /* stuff that for historic reasons is in this header file but should have
1785 * been in pkcs11n.h */ 1832 * been in pkcs11n.h */
1786 #define CKK_INVALID_KEY_TYPE 0xffffffff 1833 #define CKK_INVALID_KEY_TYPE 0xffffffff
1787 1834
1788 #include "pkcs11n.h" 1835 #include "pkcs11n.h"
1789 1836
1790 /* undo packing */ 1837 /* undo packing */
1791 #include "pkcs11u.h" 1838 #include "pkcs11u.h"
1792 1839
1793 #endif 1840 #endif
OLDNEW
« nss/lib/util/pkcs11n.h ('K') | « nss/lib/util/pkcs11n.h ('k') | nss/lib/util/quickder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698