beeblebrox% ./v -d Examples per FIPS publication 81, keys ivs and cipher in hex. These are the correct answers, see below for the actual answers. Examples per Davies and Price. EXAMPLE ECB key = 08192a3b4c5d6e7f clear = 0 cipher = 25 dd ac 3e 96 17 64 67 ACTUAL ECB clear "" clear 00 00 00 00 00 00 00 00 cipher 25 DD AC 3E 96 17 64 67 clear 00 00 00 00 00 00 00 00 cipher 25 DD AC 3E 96 17 64 67 cipher = (low to high bytes) 25 dd ac 3e 96 17 64 67 clear 00 00 00 00 00 00 00 00 cipher 25 DD AC 3E 96 17 64 67 clear 00 00 00 00 00 00 00 00 cipher 25 DD AC 3E 96 17 64 67 verify: ECB encription is correct EXAMPLE ECB key = 0123456789abcdef clear = "Now is the time for all " cipher = 3f a4 0e 8a 98 4d 48 15 ... ACTUAL ECB clear "Now is the time for all " clear Now is the time for all 4E 6F 77 20 69 73 20 74 cipher 3F A4 0E 8A 98 4D 48 15 clear Now is the time for all 4E 6F 77 20 69 73 20 74 cipher 3F A4 0E 8A 98 4D 48 15 cipher = (low to high bytes) 3f a4 0e 8a 98 4d 48 15 clear Now is t 4E 6F 77 20 69 73 20 74 cipher 3F A4 0E 8A 98 4D 48 15 clear Now is t 4E 6F 77 20 69 73 20 74 cipher 3F A4 0E 8A 98 4D 48 15 verify: ECB encription is correct EXAMPLE CBC key = 0123456789abcdef iv = 1234567890abcdef clear = "Now is the time for all " cipher = e5 c7 cd de 87 2b f2 7c 43 e9 34 00 8c 38 9c 0f 68 37 88 49 9a 7c 05 f6 ACTUAL CBC clear "Now is the time for all " ciphertext = (low to high bytes) e5 c7 cd de 87 2b f2 7c 43 e9 34 00 8c 38 9c 0f 68 37 88 49 9a 7c 05 f6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 decrypted clear_text = "Now is the time for all " verify: CBC encription is correct EXAMPLE CBC checksum key = 0123456789abcdef iv = 1234567890abcdef clear = "7654321 Now is the time for " checksum 58 d2 e7 7e 86 06 27 33, or some part thereof ACTUAL CBC checksum encrypted cksum = (low to high bytes) 58 d2 e7 7e 86 06 27 33 verify: CBC checksum is correct