• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..30-Mar-2022-

READMEH A D30-Mar-20221.6 KiB4231

aes.shH A D30-Mar-20222.9 KiB11994

aesgcm.shH A D30-Mar-20222.2 KiB7751

dsa.shH A D30-Mar-20222.9 KiB8955

ecdsa.shH A D30-Mar-20222.6 KiB7545

hmac.shH A D30-Mar-20221.2 KiB4324

ike.shH A D30-Mar-20221.5 KiB5133

kas.shH A D30-Mar-20224.2 KiB11379

kbkdf.shH A D30-Mar-20221.2 KiB4224

rng.shH A D30-Mar-20221.2 KiB4224

rsa.shH A D30-Mar-20222 KiB5831

runtest.shH A D30-Mar-2022646 2518

sha.shH A D30-Mar-20221.9 KiB7252

tdea.shH A D30-Mar-20222.8 KiB11381

tls.shH A D30-Mar-20221.2 KiB4224

validate.shH A D30-Mar-2022243 81

validate1.shH A D30-Mar-20221.3 KiB3316

README

1These scripts are used to run fipstest on a directory of CAVS vectors.
2
3individual cipher scripts:
4aesgcm.sh aes.sh dsa.sh ecdsa.sh hmac.sh ike.sh kas.sh
5kbkdf.sh rng.sh rsa.sh sha.sh tdea.sh tls.sh
6
7Each individual cipher script handles all the tests in a particular directory.
8The scripts have 2 modes:
9  1) run [default] which generates the .rsp file from the .req file.
10  2) verify  which verify the generated .req file, either from a pregenerated
11.fax file, or by running the appropriate fipstest verify function. The latter
12is used for output that's non-deterministic (like randomly generated keys, or
13signatures with random elements in them like DSA).
14
15The verify scripts return 0 on success and non-zero on failure.
16
17The validate1.sh script is used by these individual cipher scripts to make
18sure .rsp and .fax files are identical, sans some expected differences like
19white space or comment differences. It returns 0 on success or non-zero on
20failure.
21
22When the scripts use fipstest to validate a .resp file, it uses grep to look
23for failure cases. grep returns '1' if no failures are found and '1' if
24failures or found. The scripts switches this back to 0 for success and 1 for
25failure with the command 'test 1 = $?` which returns 0 if $? is 1 and 1 if $?
26is 0.
27
28To run and individual cipher test, just type:
29   ./{script}.sh {path-to-cavs-root}
30
31to verify with an individual cipher test, just type:
32  ./{script}.sh {path-to-cavs-root} verify
33
34You can run all the cipher scripts with the runtest.sh:
35   ./runtest.sh {path-to-cavs-root}
36
37And you can verify the result with:
38  ./runtest.sh {path-to-cavs-root} verify
39Or
40  ./validate.sh {patch-to-cavs-root}
41
42