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

Side by Side Diff: nss/lib/softoken/pkcs11.c

Issue 27510015: Support ChaCha20+Poly1305 cipher suites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Fold long lines Created 7 years, 1 month 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
« no previous file with comments | « nss/lib/pk11wrap/pk11mech.c ('k') | nss/lib/softoken/pkcs11c.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /* 4 /*
5 * This file implements PKCS 11 on top of our existing security modules 5 * This file implements PKCS 11 on top of our existing security modules
6 * 6 *
7 * For more information about PKCS 11 See PKCS 11 Token Inteface Standard. 7 * For more information about PKCS 11 See PKCS 11 Token Inteface Standard.
8 * This implementation has two slots: 8 * This implementation has two slots:
9 * slot 1 is our generic crypto support. It does not require login. 9 * slot 1 is our generic crypto support. It does not require login.
10 * It supports Public Key ops, and all they bulk ciphers and hashes. 10 * It supports Public Key ops, and all they bulk ciphers and hashes.
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 {CKM_CAMELLIA_MAC, {16, 32, CKF_SN_VR}, PR_TRUE}, 361 {CKM_CAMELLIA_MAC, {16, 32, CKF_SN_VR}, PR_TRUE},
362 {CKM_CAMELLIA_MAC_GENERAL, {16, 32, CKF_SN_VR}, PR_TRUE}, 362 {CKM_CAMELLIA_MAC_GENERAL, {16, 32, CKF_SN_VR}, PR_TRUE},
363 {CKM_CAMELLIA_CBC_PAD, {16, 32, CKF_EN_DE_WR_UN}, PR_TRUE}, 363 {CKM_CAMELLIA_CBC_PAD, {16, 32, CKF_EN_DE_WR_UN}, PR_TRUE},
364 /* ------------------------- SEED Operations --------------------------- */ 364 /* ------------------------- SEED Operations --------------------------- */
365 {CKM_SEED_KEY_GEN, {16, 16, CKF_GENERATE}, PR_TRUE}, 365 {CKM_SEED_KEY_GEN, {16, 16, CKF_GENERATE}, PR_TRUE},
366 {CKM_SEED_ECB, {16, 16, CKF_EN_DE_WR_UN}, PR_TRUE}, 366 {CKM_SEED_ECB, {16, 16, CKF_EN_DE_WR_UN}, PR_TRUE},
367 {CKM_SEED_CBC, {16, 16, CKF_EN_DE_WR_UN}, PR_TRUE}, 367 {CKM_SEED_CBC, {16, 16, CKF_EN_DE_WR_UN}, PR_TRUE},
368 {CKM_SEED_MAC, {16, 16, CKF_SN_VR}, PR_TRUE}, 368 {CKM_SEED_MAC, {16, 16, CKF_SN_VR}, PR_TRUE},
369 {CKM_SEED_MAC_GENERAL, {16, 16, CKF_SN_VR}, PR_TRUE}, 369 {CKM_SEED_MAC_GENERAL, {16, 16, CKF_SN_VR}, PR_TRUE},
370 {CKM_SEED_CBC_PAD, {16, 16, CKF_EN_DE_WR_UN}, PR_TRUE}, 370 {CKM_SEED_CBC_PAD, {16, 16, CKF_EN_DE_WR_UN}, PR_TRUE},
371 /* ------------------------- ChaCha20 Operations ---------------------- */
372 {CKM_NSS_CHACHA20_KEY_GEN, {32, 32, CKF_GENERATE}, PR_TRUE},
373 {CKM_NSS_CHACHA20_POLY1305,{32, 32, CKF_EN_DE}, PR_TRUE},
371 /* ------------------------- Hashing Operations ----------------------- */ 374 /* ------------------------- Hashing Operations ----------------------- */
372 {CKM_MD2, {0, 0, CKF_DIGEST}, PR_FALSE}, 375 {CKM_MD2, {0, 0, CKF_DIGEST}, PR_FALSE},
373 {CKM_MD2_HMAC, {1, 128, CKF_SN_VR}, PR_TRUE}, 376 {CKM_MD2_HMAC, {1, 128, CKF_SN_VR}, PR_TRUE},
374 {CKM_MD2_HMAC_GENERAL, {1, 128, CKF_SN_VR}, PR_TRUE}, 377 {CKM_MD2_HMAC_GENERAL, {1, 128, CKF_SN_VR}, PR_TRUE},
375 {CKM_MD5, {0, 0, CKF_DIGEST}, PR_FALSE}, 378 {CKM_MD5, {0, 0, CKF_DIGEST}, PR_FALSE},
376 {CKM_MD5_HMAC, {1, 128, CKF_SN_VR}, PR_TRUE}, 379 {CKM_MD5_HMAC, {1, 128, CKF_SN_VR}, PR_TRUE},
377 {CKM_MD5_HMAC_GENERAL, {1, 128, CKF_SN_VR}, PR_TRUE}, 380 {CKM_MD5_HMAC_GENERAL, {1, 128, CKF_SN_VR}, PR_TRUE},
378 {CKM_SHA_1, {0, 0, CKF_DIGEST}, PR_FALSE}, 381 {CKM_SHA_1, {0, 0, CKF_DIGEST}, PR_FALSE},
379 {CKM_SHA_1_HMAC, {1, 128, CKF_SN_VR}, PR_TRUE}, 382 {CKM_SHA_1_HMAC, {1, 128, CKF_SN_VR}, PR_TRUE},
380 {CKM_SHA_1_HMAC_GENERAL, {1, 128, CKF_SN_VR}, PR_TRUE}, 383 {CKM_SHA_1_HMAC_GENERAL, {1, 128, CKF_SN_VR}, PR_TRUE},
(...skipping 4341 matching lines...) Expand 10 before | Expand all | Expand 10 after
4722 4725
4723 4726
4724 CK_RV NSC_WaitForSlotEvent(CK_FLAGS flags, CK_SLOT_ID_PTR pSlot, 4727 CK_RV NSC_WaitForSlotEvent(CK_FLAGS flags, CK_SLOT_ID_PTR pSlot,
4725 CK_VOID_PTR pReserved) 4728 CK_VOID_PTR pReserved)
4726 { 4729 {
4727 CHECK_FORK(); 4730 CHECK_FORK();
4728 4731
4729 return CKR_FUNCTION_NOT_SUPPORTED; 4732 return CKR_FUNCTION_NOT_SUPPORTED;
4730 } 4733 }
4731 4734
OLDNEW
« no previous file with comments | « nss/lib/pk11wrap/pk11mech.c ('k') | nss/lib/softoken/pkcs11c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698