pkg/crypto/sha256/testdata/gen.txtar
raw| 1 | # generated from the original tests. |
| 2 | # Henceforth it may be nicer to group tests into separate files. |
| 3 | -- in.cue -- |
| 4 | import "crypto/sha256" |
| 5 | |
| 6 | t1: sha256.Sum256("hash me") |
| 7 | t2: len(sha256.Sum256("hash me")) |
| 8 | t3: len(sha256.Sum224("hash me")) |
| 9 | -- out/sha256 -- |
| 10 | t1: '\xeb \x1a\xf5\xaa\xf0\xd6\x06)\xd3Ҧ\x1eFl\xfc\x0f\xed\xb5\x17\xad\xd81\xec\xacR5\xe1کc\xd6' |
| 11 | t2: 32 |
| 12 | t3: 28 |