Skip to content

Commit

Permalink
Added argon2i_32 unit test and updated changelog for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mliberty1 committed Aug 17, 2024
1 parent 923757f commit d725980
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
This file contains the list of changes made to pymonocypher.


## 4.0.2.3
## 4.0.2.4

2024 June 5 [in progress]
2024 Aug 17

* Patched GitHub action based upon 3.1.3.3 release.
* Removed unnecessary numpy dependency.
* Fixed argon2i_32
* Changed incorrect nb_block to nb_blocks
* Added "_wipe" argument to optionally skip wipe operation.
* Added unit test


## 3.1.3.3
Expand Down
6 changes: 6 additions & 0 deletions test/test_monocypher.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,9 @@ def test_elligator_explicit_rand(self):
pass
curve2 = monocypher.elligator_map(hidden2)
self.assertEqual(curve1, curve2)

def test_argon2i_32(self):
expect = b'm\xf3pIA\xe4#\x92\x89h\x9cI\x9c\x08\xbe\xc4v\xb2\xc5\x8c\xa4\x1cV\x9a\xd2b\x0e\x96oer\x02'
# use fast nb_blocks and nb_passes values for unit test, do not use these in production
hash = monocypher.argon2i_32(8, 3, b'12345', b'salt')
self.assertEqual(expect, hash)

0 comments on commit d725980

Please sign in to comment.