2
|
1 |
|
|
2 |
# Configuration to run unit tests with NSS
|
|
3 |
|
|
4 |
name = NSS
|
|
5 |
|
|
6 |
slot = 1
|
|
7 |
|
|
8 |
#showInfo = true
|
|
9 |
|
|
10 |
library = ${pkcs11test.nss.lib}
|
|
11 |
|
|
12 |
nssArgs = "configdir='${pkcs11test.nss.db}' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly"
|
|
13 |
|
|
14 |
# HMAC_SHA256/384/512 broken until NSS 3.10.2
|
|
15 |
# see https://bugzilla.mozilla.org/show_bug.cgi?id=291858
|
|
16 |
disabledMechanisms = {
|
|
17 |
CKM_SHA256_HMAC
|
|
18 |
CKM_SHA384_HMAC
|
|
19 |
CKM_SHA512_HMAC
|
|
20 |
}
|
|
21 |
|
|
22 |
attributes = compatibility
|
|
23 |
|
|
24 |
# NSS needs CKA_NETSCAPE_DB for DSA and DH private keys
|
|
25 |
# just put an arbitrary value in there to make it happy
|
|
26 |
|
|
27 |
attributes(*,CKO_PRIVATE_KEY,CKK_DSA) = {
|
|
28 |
CKA_NETSCAPE_DB = 0h00
|
|
29 |
}
|
|
30 |
|
|
31 |
attributes(*,CKO_PRIVATE_KEY,CKK_DH) = {
|
|
32 |
CKA_NETSCAPE_DB = 0h00
|
|
33 |
}
|