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 /* | 4 /* |
5 * This file maps various PKCS #11 Mechanisms to related mechanisms, key | 5 * This file maps various PKCS #11 Mechanisms to related mechanisms, key |
6 * types, and ASN.1 encodings. | 6 * types, and ASN.1 encodings. |
7 */ | 7 */ |
8 #include "seccomon.h" | 8 #include "seccomon.h" |
9 #include "secmod.h" | 9 #include "secmod.h" |
10 #include "secmodi.h" | 10 #include "secmodi.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 return CKK_SEED; | 214 return CKK_SEED; |
215 case CKM_CAMELLIA_ECB: | 215 case CKM_CAMELLIA_ECB: |
216 case CKM_CAMELLIA_CBC: | 216 case CKM_CAMELLIA_CBC: |
217 case CKM_CAMELLIA_MAC: | 217 case CKM_CAMELLIA_MAC: |
218 case CKM_CAMELLIA_MAC_GENERAL: | 218 case CKM_CAMELLIA_MAC_GENERAL: |
219 case CKM_CAMELLIA_CBC_PAD: | 219 case CKM_CAMELLIA_CBC_PAD: |
220 case CKM_CAMELLIA_KEY_GEN: | 220 case CKM_CAMELLIA_KEY_GEN: |
221 return CKK_CAMELLIA; | 221 return CKK_CAMELLIA; |
222 case CKM_AES_ECB: | 222 case CKM_AES_ECB: |
223 case CKM_AES_CBC: | 223 case CKM_AES_CBC: |
224 case CKM_AES_CCM: | |
225 case CKM_AES_CTR: | |
226 case CKM_AES_CTS: | |
227 case CKM_AES_GCM: | |
wtc
2013/03/26 18:24:46
This function (PK11_GetKeyType) is called by PK11_
| |
224 case CKM_AES_MAC: | 228 case CKM_AES_MAC: |
225 case CKM_AES_MAC_GENERAL: | 229 case CKM_AES_MAC_GENERAL: |
226 case CKM_AES_CBC_PAD: | 230 case CKM_AES_CBC_PAD: |
227 case CKM_AES_KEY_GEN: | 231 case CKM_AES_KEY_GEN: |
228 case CKM_NETSCAPE_AES_KEY_WRAP: | 232 case CKM_NETSCAPE_AES_KEY_WRAP: |
229 case CKM_NETSCAPE_AES_KEY_WRAP_PAD: | 233 case CKM_NETSCAPE_AES_KEY_WRAP_PAD: |
230 return CKK_AES; | 234 return CKK_AES; |
231 case CKM_DES_ECB: | 235 case CKM_DES_ECB: |
232 case CKM_DES_CBC: | 236 case CKM_DES_CBC: |
233 case CKM_DES_MAC: | 237 case CKM_DES_MAC: |
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1863 case SEC_OID_MISSI_DSS: | 1867 case SEC_OID_MISSI_DSS: |
1864 case SEC_OID_MISSI_DSS_OLD: | 1868 case SEC_OID_MISSI_DSS_OLD: |
1865 case SEC_OID_MISSI_KEA_DSS_OLD: | 1869 case SEC_OID_MISSI_KEA_DSS_OLD: |
1866 case SEC_OID_BOGUS_DSA_SIGNATURE_WITH_SHA1_DIGEST: | 1870 case SEC_OID_BOGUS_DSA_SIGNATURE_WITH_SHA1_DIGEST: |
1867 return SEC_OID_ANSIX9_DSA_SIGNATURE; | 1871 return SEC_OID_ANSIX9_DSA_SIGNATURE; |
1868 default: | 1872 default: |
1869 break; | 1873 break; |
1870 } | 1874 } |
1871 return algTag; | 1875 return algTag; |
1872 } | 1876 } |
OLD | NEW |