-
Notifications
You must be signed in to change notification settings - Fork 32
Description
I noticed when adding some sanity checks in my ACVP driver script recently that KAS-FFC-SSC and KDF (SP 800-108) vectors appear to be creating extra, blank test groups in the response files. For KAS, it seems to create each tgId 3x, while with KDF it was duplicating 2x. For example, if I had a KAS-FFC-SSC vector with 5 tgId within it, I would see this at the end of the response file:
{
"tgId":1,
"tests":[
]
},
{
"tgId":2,
"tests":[
]
},
{
"tgId":3,
"tests":[
]
},
{
"tgId":4,
"tests":[
]
},
{
"tgId":5,
"tests":[
]
},
{
"tgId":1,
"tests":[
]
},
{
"tgId":2,
"tests":[
]
},
{
"tgId":3,
"tests":[
]
},
{
"tgId":4,
"tests":[
]
},
{
"tgId":5,
"tests":[
]
}
I've attached a patch that I used to fix this on my side, but just with the caveat that it's not super thoroughly tested. I've only tested it on the specific vectors where it affected me (KAS-FFC-SSC and KDF 1.0). Another note is just that the NIST server does not treat these additional empty test groups as failures or anything - it's more just a formatting issue I noticed.