1# SHA-1 tests from RFC 3174. 2 3Hash = SHA1 4Input = "abc" 5Repeat = 1 6Output = a9993e364706816aba3e25717850c26c9cd0d89d 7 8Hash = SHA1 9Input = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" 10Repeat = 1 11Output = 84983e441c3bd26ebaae4aa1f95129e5e54670f1 12 13Hash = SHA1 14Input = "a" 15Repeat = 1000000 16Output = 34aa973cd4c4daa4f61eeb2bdbad27316534016f 17 18Hash = SHA1 19Input = "0123456701234567012345670123456701234567012345670123456701234567" 20Repeat = 10 21Output = dea356a2cddd90c7a7ecedc5ebb563934f460452 22 23# SHA-256 tests from NIST. 24 25Hash = SHA256 26Input = "abc" 27Repeat = 1 28Output = ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 29 30Hash = SHA256 31Input = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" 32Repeat = 1 33Output = 248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1 34 35# SHA-384 tests from NIST. 36 37Hash = SHA384 38Input = "abc" 39Repeat = 1 40Output = cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7 41 42Hash = SHA384 43Input = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" 44Repeat = 1 45Output = 09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039 46 47# SHA-512 tests from NIST 48 49Hash = SHA512 50Input = "abc" 51Repeat = 1 52Output = ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f 53 54Hash = SHA512 55Input = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu" 56Repeat = 1 57Output = 8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909 58 59# SHA-512/256 tests from Go. 60 61Hash = SHA512_256 62Input = "" 63Repeat = 1 64Output = c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a 65 66Hash = SHA512_256 67Input = "a" 68Repeat = 1 69Output = 455e518824bc0601f9fb858ff5c37d417d67c2f8e0df2babe4808858aea830f8 70 71Hash = SHA512_256 72Input = "ab" 73Repeat = 1 74Output = 22d4d37ec6370571af7109fb12eae79673d5f7c83e6e677083faa3cfac3b2c14 75 76Hash = SHA512_256 77Input = "abc" 78Repeat = 1 79Output = 53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23 80 81Hash = SHA512_256 82Input = "abcd" 83Repeat = 1 84Output = d2891c7978be0e24948f37caa415b87cb5cbe2b26b7bad9dc6391b8a6f6ddcc9 85 86Hash = SHA512_256 87Input = "abcde" 88Repeat = 1 89Output = de8322b46e78b67d4431997070703e9764e03a1237b896fd8b379ed4576e8363 90 91Hash = SHA512_256 92Input = "abcdef" 93Repeat = 1 94Output = e4fdcb11d1ac14e698743acd8805174cea5ddc0d312e3e47f6372032571bad84 95 96Hash = SHA512_256 97Input = "abcdefg" 98Repeat = 1 99Output = a8117f680bdceb5d1443617cbdae9255f6900075422326a972fdd2f65ba9bee3 100 101Hash = SHA512_256 102Input = "abcdefgh" 103Repeat = 1 104Output = a29b9645d2a02a8b582888d044199787220e316bf2e89d1422d3df26bf545bbe 105 106Hash = SHA512_256 107Input = "abcdefghi" 108Repeat = 1 109Output = b955095330f9c8188d11884ec1679dc44c9c5b25ff9bda700416df9cdd39188f 110 111Hash = SHA512_256 112Input = "abcdefghij" 113Repeat = 1 114Output = 550762913d51eefbcd1a55068fcfc9b154fd11c1078b996df0d926ea59d2a68d 115 116Hash = SHA512_256 117Input = "Discard medicine more than two years old." 118Repeat = 1 119Output = 690c8ad3916cefd3ad29226d9875965e3ee9ec0d4482eacc248f2ff4aa0d8e5b 120 121Hash = SHA512_256 122Input = "He who has a shady past knows that nice guys finish last." 123Repeat = 1 124Output = 25938ca49f7ef1178ce81620842b65e576245fcaed86026a36b516b80bb86b3b 125 126Hash = SHA512_256 127Input = "I wouldn't marry him with a ten foot pole." 128Repeat = 1 129Output = 698e420c3a7038e53d8e73f4be2b02e03b93464ac1a61ebe69f557079921ef65 130 131Hash = SHA512_256 132Input = "Free! Free!/A trip/to Mars/for 900/empty jars/Burma Shave" 133Repeat = 1 134Output = 839b414d7e3900ee243aa3d1f9b6955720e64041f5ab9bedd3eb0a08da5a2ca8 135 136Hash = SHA512_256 137Input = "The days of the digital watch are numbered. -Tom Stoppard" 138Repeat = 1 139Output = 5625ecb9d284e54c00b257b67a8cacb25a78db2845c60ef2d29e43c84f236e8e 140 141Hash = SHA512_256 142Input = "Nepal premier won't resign." 143Repeat = 1 144Output = 9b81d06bca2f985e6ad3249096ff3c0f2a9ec5bb16ef530d738d19d81e7806f2 145 146Hash = SHA512_256 147Input = "For every action there is an equal and opposite government program." 148Repeat = 1 149Output = 08241df8d91edfcd68bb1a1dada6e0ae1475a5c6e7b8f12d8e24ca43a38240a9 150 151Hash = SHA512_256 152Input = "His money is twice tainted: 'taint yours and 'taint mine." 153Repeat = 1 154Output = 4ff74d9213a8117745f5d37b5353a774ec81c5dfe65c4c8986a56fc01f2c551e 155 156Hash = SHA512_256 157Input = "There is no reason for any individual to have a computer in their home. -Ken Olsen, 1977" 158Repeat = 1 159Output = b5baf747c307f98849ec881cf0d48605ae4edd386372aea9b26e71db517e650b 160 161Hash = SHA512_256 162Input = "It's a tiny change to the code and not completely disgusting. - Bob Manchek" 163Repeat = 1 164Output = 7eef0538ebd7ecf18611d23b0e1cd26a74d65b929a2e374197dc66e755ca4944 165 166Hash = SHA512_256 167Input = "size: a.out: bad magic" 168Repeat = 1 169Output = d05600964f83f55323104aadab434f32391c029718a7690d08ddb2d7e8708443 170 171Hash = SHA512_256 172Input = "The major problem is with sendmail. -Mark Horton" 173Repeat = 1 174Output = 53ed5f9b5c0b674ac0f3425d9f9a5d462655b07cc90f5d0f692eec093884a607 175 176Hash = SHA512_256 177Input = "Give me a rock, paper and scissors and I will move the world. CCFestoon" 178Repeat = 1 179Output = 5a0147685a44eea2435dbd582724efca7637acd9c428e5e1a05115bc3bc2a0e0 180 181Hash = SHA512_256 182Input = "If the enemy is within range, then so are you." 183Repeat = 1 184Output = 1152c9b27a99dbf4057d21438f4e63dd0cd0977d5ff12317c64d3b97fcac875a 185 186Hash = SHA512_256 187Input = "It's well we cannot hear the screams/That we create in others' dreams." 188Repeat = 1 189Output = 105e890f5d5cf1748d9a7b4cdaf58b69855779deebc2097747c2210a17b2cb51 190 191Hash = SHA512_256 192Input = "You remind me of a TV show, but that's all right: I watch it anyway." 193Repeat = 1 194Output = 74644ead770da1434365cd912656fe1aca2056d3039d39f10eb1151bddb32cf3 195 196Hash = SHA512_256 197Input = "C is as portable as Stonehedge!!" 198Repeat = 1 199Output = 50a234625de5587581883dad9ef399460928032a5ea6bd005d7dc7b68d8cc3d6 200 201Hash = SHA512_256 202Input = "Even if I could be Shakespeare, I think I should still choose to be Faraday. - A. Huxley" 203Repeat = 1 204Output = a7a3846005f8a9935a0a2d43e7fd56d95132a9a3609bf3296ef80b8218acffa0 205 206Hash = SHA512_256 207Input = "The fugacity of a constituent in a mixture of gases at a given temperature is proportional to its mole fraction. Lewis-Randall Rule" 208Repeat = 1 209Output = 688ff03e367680757aa9906cb1e2ad218c51f4526dc0426ea229a5ba9d002c69 210 211Hash = SHA512_256 212Input = "How can you write a big system without C++? -Paul Glick" 213Repeat = 1 214Output = 3fa46d52094b01021cff5af9a438982b887a5793f624c0a6644149b6b7c3f485 215