shrub/pkg/arvo/tests/sys/zuse/crypto/argon.hoon
Jared Tobin b3901ab42f Add 'pkg/arvo/' from commit 'c20e2a185f131ff3f5d3961829bd7a3fe0f227f8'
git-subtree-dir: pkg/arvo
git-subtree-mainline: 9c8f40bf6c
git-subtree-split: c20e2a185f
2019-06-28 12:48:05 +08: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'
--