Artifact
6c4218a06959d3af9bd3d6c2336c4dba6b372e0849952885047d79a56d7616b5:
0000: 54 68 65 72 65 20 61 72 65 20 74 77 6f 20 73 65 There are two se
0010: 74 73 20 6f 66 20 53 48 41 20 65 78 61 6d 70 6c ts of SHA exampl
0020: 65 20 66 69 6c 65 73 3a 0a 0a 31 2e 20 54 68 65 e files:..1. The
0030: 20 72 65 73 70 6f 6e 73 65 20 28 2e 72 73 70 29 response (.rsp)
0040: 20 66 69 6c 65 73 20 63 6f 6e 74 61 69 6e 20 70 files contain p
0050: 72 6f 70 65 72 6c 79 20 66 6f 72 6d 61 74 74 65 roperly formatte
0060: 64 20 43 41 56 53 20 72 65 73 70 6f 6e 73 65 20 d CAVS response
0070: 66 69 6c 65 73 2e 0a 0a 32 2e 20 54 68 65 20 69 files...2. The i
0080: 6e 74 65 72 6d 65 64 69 61 74 65 20 76 61 6c 75 ntermediate valu
0090: 65 20 28 2a 4d 6f 6e 74 65 2e 74 78 74 29 20 66 e (*Monte.txt) f
00a0: 69 6c 65 73 20 66 6f 72 20 74 68 65 20 4d 6f 6e iles for the Mon
00b0: 74 65 20 43 61 72 6c 6f 20 74 65 73 74 73 20 63 te Carlo tests c
00c0: 6f 6e 74 61 69 6e 0a 20 20 20 76 61 6c 75 65 73 ontain. values
00d0: 20 66 6f 72 20 74 68 65 20 69 6e 6e 65 72 20 6c for the inner l
00e0: 6f 6f 70 20 61 73 20 73 68 6f 77 6e 20 69 6e 20 oop as shown in
00f0: 74 68 65 20 70 73 65 75 64 6f 63 6f 64 65 20 69 the pseudocode i
0100: 6e 20 46 69 67 75 72 65 20 31 20 6f 6e 20 70 61 n Figure 1 on pa
0110: 67 65 20 39 0a 20 20 20 6f 66 20 74 68 65 20 53 ge 9. of the S
0120: 48 41 20 56 61 6c 69 64 61 74 69 6f 6e 20 53 79 HA Validation Sy
0130: 73 74 65 6d 2e 20 20 54 68 65 20 69 6e 6e 65 72 stem. The inner
0140: 20 6c 6f 6f 70 20 76 61 72 69 61 62 6c 65 20 27 loop variable '
0150: 69 27 20 72 61 6e 67 65 73 20 69 6e 20 76 61 6c i' ranges in val
0160: 75 65 0a 20 20 20 66 72 6f 6d 20 33 20 74 6f 20 ue. from 3 to
0170: 31 30 30 32 2e 20 20 54 68 65 20 69 6e 74 65 72 1002. The inter
0180: 6d 65 64 69 61 74 65 20 76 61 6c 75 65 73 20 66 mediate values f
0190: 6f 72 20 74 68 65 20 66 69 72 73 74 20 66 69 76 or the first fiv
01a0: 65 20 69 74 65 72 61 74 69 6f 6e 73 20 6f 66 0a e iterations of.
01b0: 20 20 20 74 68 65 20 69 6e 6e 65 72 20 6c 6f 6f the inner loo
01c0: 70 20 74 68 65 72 65 66 6f 72 65 20 63 6f 72 72 p therefore corr
01d0: 65 73 70 6f 6e 64 20 74 6f 20 27 69 27 20 76 61 espond to 'i' va
01e0: 6c 75 65 73 20 6f 66 20 33 20 74 6f 20 37 2e 20 lues of 3 to 7.
01f0: 54 68 65 20 6d 65 73 73 61 67 65 20 28 4d 29 0a The message (M).
0200: 20 20 20 61 6e 64 20 74 68 65 20 6d 65 73 73 61 and the messa
0210: 67 65 20 64 69 67 65 73 74 20 28 4d 44 69 29 20 ge digest (MDi)
0220: 66 6f 72 20 65 61 63 68 20 6f 66 20 74 68 65 73 for each of thes
0230: 65 20 69 20 61 72 65 20 70 72 69 6e 74 65 64 20 e i are printed
0240: 6f 75 74 2c 20 69 6e 64 65 6e 74 65 64 0a 20 20 out, indented.
0250: 20 62 79 20 6f 6e 65 20 74 61 62 20 73 70 61 63 by one tab spac
0260: 65 2e 20 20 54 68 65 20 66 69 6e 61 6c 20 6d 65 e. The final me
0270: 73 73 61 67 65 20 64 69 67 65 73 74 20 28 4d 44 ssage digest (MD
0280: 29 2c 20 6e 6f 74 20 69 6e 64 65 6e 74 65 64 2c ), not indented,
0290: 20 69 73 20 74 68 65 20 6c 61 73 74 0a 20 20 20 is the last.
02a0: 76 61 6c 75 65 20 70 72 69 6e 74 65 64 20 66 6f value printed fo
02b0: 72 20 65 61 63 68 20 63 6f 75 6e 74 2e 0a 0a 20 r each count...
02c0: 20 20 0a 54 68 65 20 53 48 41 20 56 61 6c 69 64 .The SHA Valid
02d0: 61 74 69 6f 6e 20 53 79 73 74 65 6d 20 64 6f 63 ation System doc
02e0: 75 6d 65 6e 74 20 63 61 6e 20 62 65 20 66 6f 75 ument can be fou
02f0: 6e 64 20 61 74 3a 0a 0a 68 74 74 70 3a 2f 2f 63 nd at:..http://c
0300: 73 72 63 2e 6e 69 73 74 2e 67 6f 76 2f 67 72 6f src.nist.gov/gro
0310: 75 70 73 2f 53 54 4d 2f 63 61 76 70 2f 64 6f 63 ups/STM/cavp/doc
0320: 75 6d 65 6e 74 73 2f 73 68 73 2f 53 48 41 56 53 uments/shs/SHAVS
0330: 2e 70 64 66 2e .pdf.