Skip to content

Commit f3427ee

Browse files
committed
Disabled test vectors for production, cleaned up APT
1 parent 7610663 commit f3427ee

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

src/com/makina/security/OpenFIPS201/Config.java

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public abstract class Config {
5252
/// to use FIXED values for cryptographic nonces and will cripple security.
5353
/// !!!!!!! WARNING !!!!!!!
5454
/// SP800-73-4 Requirement: Must be set to false
55-
public static final boolean FEATURE_PIV_TEST_VECTORS = true;
55+
public static final boolean FEATURE_PIV_TEST_VECTORS = false;
5656

5757
/// Indicates that the mandatory PIV Card Application PIN satisfies the PIV Access Control
5858
/// Rules (ACRs) for command execution and data object access.
@@ -141,7 +141,7 @@ public abstract class Config {
141141
/// The number of retries that the PIN object will not be permitted to go below over
142142
/// the contactless interface. Setting to zero effectively disables this option.
143143
/// SP800-73-4 Requirement: Issuer-defined
144-
public static final byte PIN_RETRIES_INTERMEDIATE = (byte)0;
144+
public static final byte PIN_RETRIES_INTERMEDIATE = (byte)1;
145145

146146
/// The number of retries before the PUK object is blocked
147147
/// SP800-73-4 Requirement: Issuer-defined
@@ -150,7 +150,7 @@ public abstract class Config {
150150
/// The number of retries that the PUK object will not be permitted to go below over
151151
/// the contactless interface. Setting to zero effectively disables this option.
152152
/// SP800-73-4 Requirement: Issuer-defined
153-
public static final byte PUK_RETRIES_INTERMEDIATE = (byte)0;
153+
public static final byte PUK_RETRIES_INTERMEDIATE = (byte)1;
154154

155155
/// The minimum length of the PIN value (SP800-73-4 default is '6')
156156
/// NOTE: Changing this value from its default will break PIV compliance
@@ -266,22 +266,17 @@ public abstract class Config {
266266
(byte)0x4F, (byte)0x05, (byte)0xA0, (byte)0x00, (byte)0x00, (byte)0x03, (byte)0x08,
267267

268268
// 2 + 11 bytes - Application label
269+
// OpenFIPS201
269270
(byte)0x50, (byte)0x0B,
270271
'O', 'p', 'e', 'n', 'F', 'I', 'P', 'S', '2', '0', '1',
271272

272273
// 3 + 73 bytes - Uniform resource locator
273274
// http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-73-4.pdf
274275
(byte)0x5F, (byte)0x50, (byte)0x49,
275-
(byte)0x68, (byte)0x74, (byte)0x74, (byte)0x70, (byte)0x3A, (byte)0x2F, (byte)0x2F, (byte)0x6E,
276-
(byte)0x76, (byte)0x6C, (byte)0x70, (byte)0x75, (byte)0x62, (byte)0x73, (byte)0x2E, (byte)0x6E,
277-
(byte)0x69, (byte)0x73, (byte)0x74, (byte)0x2E, (byte)0x67, (byte)0x6F, (byte)0x76, (byte)0x2F,
278-
(byte)0x6E, (byte)0x69, (byte)0x73, (byte)0x74, (byte)0x70, (byte)0x75, (byte)0x62, (byte)0x73,
279-
(byte)0x2F, (byte)0x53, (byte)0x70, (byte)0x65, (byte)0x63, (byte)0x69, (byte)0x61, (byte)0x6C,
280-
(byte)0x50, (byte)0x75, (byte)0x62, (byte)0x6C, (byte)0x69, (byte)0x63, (byte)0x61, (byte)0x74,
281-
(byte)0x69, (byte)0x6F, (byte)0x6E, (byte)0x73, (byte)0x2F, (byte)0x4E, (byte)0x49, (byte)0x53,
282-
(byte)0x54, (byte)0x2E, (byte)0x53, (byte)0x50, (byte)0x2E, (byte)0x38, (byte)0x30, (byte)0x30,
283-
(byte)0x2D, (byte)0x37, (byte)0x33, (byte)0x2D, (byte)0x34, (byte)0x2E, (byte)0x70, (byte)0x64,
284-
(byte)0x66,
276+
'h', 't', 't', 'p', ':', '/', '/', 'n', 'v', 'l', 'p', 'u', 'b', 's', '.', 'n', 'i', 's', 't', '.',
277+
'g', 'o', 'v', '/', 'n', 'i', 's', 't', 'p', 'u', 'b', 's', '/', 'S', 'p', 'e', 'c', 'i', 'a', 'l',
278+
'P', 'u', 'b', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 's', '/', 'N', 'I', 'S', 'T', '.', 'S', 'P',
279+
'.', '8', '0', '0', '-', '7', '3', '-', '4', '.', 'p', 'd', 'f',
285280

286281
// 2 + 24 - Cryptographic Algorithm Identifier Template (Tag 'AC')
287282
(byte)0xAC, (byte)0x18,
@@ -297,7 +292,6 @@ public abstract class Config {
297292

298293
// Object identifier
299294
(byte)0x06, (byte)0x01, (byte)0x00
295+
300296
};
301-
}
302-
303-
297+
}

0 commit comments

Comments
 (0)