Commit Graph

51 Commits

Author SHA1 Message Date
Eugene Kabanov 24e006df85
Refactor actions ci. (#58)
* Initial commit.

* Fix nim_branch.

* Fix bootstrap scripts.

* Fix git checkout.

* Add compiler's version dump.

* Add schedule job every day at 22:25 UTC.

* Change schedule to 23:00 UTC.

* Fix issue.

* Attempt to fix cron issue.

* Fix pull_request.

* Recover.

* Revert to previous version.
2022-07-06 02:24:18 +03:00
tersec 4a0633dc0b
use "openArray" instead of "openarray" for stylecheck (#55) 2022-07-05 13:33:21 +03:00
Eugene Kabanov a5742a9a21
Use Github Actions instead of Travis & Appveyor. (#52)
* Add Github Actions CI instead of Travis and Appveyor.
2021-06-19 02:28:08 +03:00
Eugene Kabanov a065c17418
Fix Nim v1.0.x compilation problems (#47)
* Fix #46.

* Bump version to 0.5.4.

* Disable Travis cache.

* Fix travis cache problems.
2020-09-07 17:51:33 +03:00
Eugene Kabanov a95a27e7b5
Implementation of constant-time hexadecimal conversion. (#44)
* Implementation of constant-time hexadecimal conversion.
* Hexadecimal conversions not raising exception anymore.
* Bump version to 0.5.2.
2020-08-03 18:00:05 +03:00
andri lim 029a1f0f1e
implement scrypt kdf and it's tests suite (#41)
* implement scrypt kdf and it's tests suite

* fix typo and misc

* bump version to 0.5.1

* prevent OOM in appveyor 32 bit

* remove unnecessary exceptions

* fix missing pbkdf ctx

* scrypt mimicking pbkdf2 API

* compile time scrypt

* remove allocation and macros from scrypt

* fix copyright header in scrypt.nim
2020-08-02 19:20:42 +03:00
Eugene Kabanov 30d0ceaba0
Change Defect to ValueError. (#38)
* Change Defect to ValueError.

* Fix runtime error.

* Cleanup.

* Fix review comment.
2020-04-09 23:36:50 +03:00
cheatfate 71b41764ae
Add tests for empty update(). 2019-12-03 02:31:40 +02:00
cheatfate 4402703da8
Fix #33.
Bump version to 0.4.8.
2019-11-27 18:45:59 +02:00
cheatfate 2bbf7c3c01
Fix last compilation warnings left. 2019-10-29 18:54:30 +02:00
cheatfate 2ce67c04ee
Fix compilation warnings.
Remove tests/config.nims.
2019-10-29 17:43:28 +02:00
cheatfate 7a47e89514
Big hashes/hmac/kdf refactoring to allow processing at compile-time. 2019-10-22 01:20:04 +03:00
cheatfate 9d79ad41fb
sha2 without casts. 2019-09-30 13:49:41 +03:00
cheatfate b39523a0de
Add HMAC.reset() tests. 2019-09-23 13:02:16 +03:00
cheatfate 8d22cf80c5
Prepare tests for NimUnused warnings.
Optimize CI scripts.
Fix pbkdf2 and testkdf.
2019-09-02 13:40:46 +03:00
cheatfate acaa5487d8
Temporarily disable pbkdf2 tests. 2019-09-01 23:43:42 +03:00
cheatfate 8a95357ddc
Add compilation flags -d:nimcryptoLowercase and -d:nimcrypto0xPrefix
Refactor tests and add testall.nim
2019-09-01 23:13:12 +03:00
Mamy André-Ratsimbazafy 4960f62461
fix preallocation + Add regression test suite 2019-03-29 14:39:17 +01:00
cheatfate 9410cb61df
Add PBKDF2-HMAC-SHA1 test vectors. 2019-03-02 18:49:15 +02:00
cheatfate 416532e047
Add SHA1 digest and tests.
Add HMAC[SHA1] test vectors.
Small fix for BLAKE2 to not return always 0 on `finish`.
Add exports for SHA1.
Bump version to 0.3.9.
2019-03-02 17:43:44 +02:00
cheatfate 93337ff037 Fix MDigest `==` operation bug.
Bump version to 0.3.6.
2018-10-18 14:12:29 +03:00
cheatfate 873b443017 Added HMAC documentation with samples.
Fixed HMAC with string keys and tests.
Added `==` procedure for MDigest and tests.
Bump version to 0.3.5.
2018-10-17 13:05:38 +03:00
Zahary Karadjov 4c5c8be274 Improved errors for bad string digests 2018-10-16 20:39:37 +03:00
cheatfate b52a895f9a Add more tests for BLAKE2. 2018-07-04 19:01:03 +03:00
cheatfate 9083468d17 Fix blake2 test names. 2018-07-04 14:46:26 +03:00
cheatfate a5a007090d Add Blake2 tests to nimble task.
Add Blake2 test to API test.
2018-07-04 14:43:22 +03:00
cheatfate d3478f20f3 Add Blake2 224/256/384/512 secure digest algorithm and tests.
Bump version to 0.3.2.
2018-07-04 14:38:49 +03:00
andri lim 0e3eb592cb fix finish(keccak, sha2, ripemd) 2018-06-22 17:54:42 +07:00
cheatfate 450e125cea Fixed tests to follow latest Nim string rules.
Bumped version to 0.3.1.
2018-05-01 10:07:00 +03:00
cheatfate b82c58dca2 Revert config.nims 2018-04-13 18:13:55 +03:00
cheatfate 7468db7dac Fix PBKDF2 tests compilation warnings.
Make some modifications to nimble.
2018-04-13 18:13:32 +03:00
cheatfate 57f0671350 PBKDF2 implementation and tests.
Fix HMAC finish() compilation errors.
Bump version to 0.3.0.
2018-04-13 17:38:18 +03:00
cheatfate b16f6cafa5 GCM implementation.
Version bump to 0.2.2.
2018-04-12 17:02:50 +03:00
cheatfate 63b782a17a Fix issue with block/key/digest sizes.
Add tests for this issue.
Version 0.2.1.
2018-03-30 15:05:22 +03:00
cheatfate 669274baff Fix compilation error bcmode.nim.
Make usage of string possible in hash/hmac.
uint8 -> byte conversion
Added tests for openarray[T] versions.
2018-03-29 19:52:55 +03:00
cheatfate 3ac92e7a61 Add randomBytes() openarray[T] version and tests. 2018-03-29 16:37:25 +03:00
cheatfate ce6326f0aa Remove empty line 2018-03-29 15:29:56 +03:00
cheatfate 9a4c30be39 Add burnMem() for openarrays and arbitrary types.
Add isFullZero() for pointers, openarrays and arbitrary types.
Add clear() to all ciphers, hashes, modes.
Add tests for clear().
Add tests for release mode.
2018-03-29 11:58:26 +03:00
cheatfate a7b4ae6ae2 Fix oneliner's indexes flaws.
Adopt tests to changed behavior.
Added proper usage of `check`.
2018-03-25 16:26:08 +03:00
cheatfate d88bc27194 Switch tests to use `unittest`. 2018-03-22 08:09:56 +02:00
cheatfate d98809efe9 Make nimble `tests` happy 2018-03-21 11:12:35 +02:00
cheatfate 1bf304bb98 Added hash(openarray[T]) and hmac(openarray[T]).
Added tests for hash(openarray[T]) and hmac(openarray[T]).
2018-03-19 16:09:58 +02:00
cheatfate e94afefb46 Change directory structure for nimble. 2018-03-16 01:07:09 +02:00
cheatfate c8ed7a87ea Introducing one line interface via digest() and hmac().
Added tests for one line interface().
2018-03-15 17:25:02 +02:00
cheatfate 64543272ae Added initial release of cross-platform os specific random source. 2018-03-15 07:16:03 +02:00
cheatfate 4a3fd612fd Almost working Static[T] 2018-03-14 17:11:05 +02:00
cheatfate a3ce3ebcfa restore millionTest for keccak and ripemd. 2018-03-14 08:55:38 +02:00
cheatfate 055aa5b23e Initial refactoring to use Static[T]. 2018-03-14 02:03:44 +02:00
cheatfate 5df0a4f2b6 First attempt 2018-03-13 14:20:45 +02:00
cheatfate 9f88a26917 Fix clear compilation error
Fix appveyor.yml
Added travis.yml
2018-03-11 12:09:40 +02:00