shrub/tests/sys/zuse/crypto/argon.hoon
fang e888960370
tests: move to root, out of pkg/arvo
Including these in pkg/arvo has caused many minor problems over the
years. We don't want to include them in releases, but this often meant
excluding them manually, which was error-prone.

Here, we move them out of /pkg/arvo/tests and into /tests. CI will have
to be updated to match, since we'll still want to include tests there.
2023-01-18 16:50:42 +01:00

26 lines
555 B
Plaintext

:: tests for argon2
::
/+ *test
=, argon2:crypto
::
|%
::
++ test-argon2d
%+ expect-eq
!> 0x2e2e.5e05.fe57.ac2c.f472.ecd0.45ef.687e.
562a.980f.d503.39b3.89c8.70e1.962b.bc45
!> ^- @ux
%+ (argon2 32 %d 0x13 1 1.024 1 0^0 0^0)
8^'drowssap'
8^'tlasemos'
::
++ test-argon2i
%+ expect-eq
!> 0x9546.6cc4.f92f.8749.5461.7eec.0aa1.195d.
2298.0abd.625e.5cac.4476.3ae3.a9cb.6ab7
!> ^- @ux
%+ (argon2 32 %i 0x13 1 1.024 1 0^0 0^0)
8^'drowssap'
8^'tlasemos'
--