cheatfate
644f7ca866
Fix isFullZero().
2018-04-28 07:23:39 +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
b78cb48211
Fix toHex().
2018-04-10 11:28:03 +03:00
cheatfate
b14fd26def
Add possibility to make lowercase hexadecimal representation.
2018-04-08 16:07:48 +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
Eugene Kabanov
7abe73579c
Merge pull request #6 from zah/master
...
proper fix for the HMAC.sizeDigest problem
2018-03-30 12:20:40 +03:00
Zahary Karadjov
4e08730f2f
proper fix for the HMAC.sizeDigest problem
2018-03-30 12:10:20 +03:00
cheatfate
d6e1975554
Fix compiler crash workaround.
2018-03-30 10:53:19 +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
12fe531e9d
Add more openarray[T] apis.
...
Add copyrights to hash.nim.
Add dead code elimination.
2018-03-29 17:49:22 +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
1aa54a0377
Attempt to switch back to upstream compiler.
2018-03-25 16:49:55 +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
862496e826
Fix bcmode.nim to use bytes (octets), not bits.
2018-03-21 18:53:06 +02:00
cheatfate
8d77f1024d
sizeBlock, sizeDigest, sizeKey procedures now returns size in bytes (octets).
2018-03-21 18:47:47 +02:00
cheatfate
ac482ec9ba
Add `testsysrand` to nimble test suite.
2018-03-21 12:55:57 +02:00
cheatfate
4ef9ad1e91
Fixed appveyor.yml config.
2018-03-21 11:28:43 +02:00
cheatfate
d10199cd36
Fix nimble warnings for Travis.
2018-03-21 11:21:04 +02:00
cheatfate
d98809efe9
Make nimble `tests` happy
2018-03-21 11:12:35 +02:00
cheatfate
4217a81093
Added functions sizeDigest/sizeBlock/sizeKey based on type.
...
Removed some trailing spaces.
2018-03-20 16:51:07 +02:00
cheatfate
ab0adb28da
Fix types.
2018-03-20 13:16:45 +02:00
cheatfate
80eb5a99b9
Fix bounderies check.
2018-03-20 12:54:31 +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
Eugene Kabanov
9511f5dadb
Merge pull request #3 from cheatfate/noheap
...
Noheap
2018-03-15 07:10:03 +02:00
Eugene Kabanov
9a9c08ca04
Merge pull request #2 from zah/noheap
...
refactor the keccak context structures to use static[T] parameters
2018-03-14 20:37:33 +02:00
Zahary Karadjov
fa7e0cbdbb
fix a compilation failure in hmac.nim
2018-03-14 20:30:52 +02:00
cheatfate
10aba9a078
Export KeccakContext, RipemdContext, Sha2Context
...
First attempt to introduce sizeBlock/sizeDigest for hmac.nim
2018-03-14 20:02:23 +02:00
cheatfate
6f1688fc78
Last fix for hmac.nim
2018-03-14 19:09:03 +02:00
cheatfate
86beae1ce2
Fix configs to use csources from original Nim.
2018-03-14 18:49:00 +02:00
cheatfate
4d61c7b032
Change travis/appveyor to work with Status nimbus branch of Nim compiler.
2018-03-14 18:45:11 +02:00
cheatfate
070c0043bc
Fix for hmac.nim to work with nimbus branch of Nim.
2018-03-14 18:42:43 +02:00
cheatfate
e840c79a6f
First attempt to make hmac working with Static[T]
...
Fixes to finish() procedure for ripemd/keccak/sha2.
2018-03-14 18:30:45 +02:00
cheatfate
4a3fd612fd
Almost working Static[T]
2018-03-14 17:11:05 +02:00
cheatfate
bdd241cbea
first attempt to create digest()
2018-03-14 13:55:41 +02:00
cheatfate
8ddbe2a115
Attempt to use Static[T] for MDigest
2018-03-14 12:39:43 +02:00
cheatfate
a3ce3ebcfa
restore millionTest for keccak and ripemd.
2018-03-14 08:55:38 +02:00
cheatfate
07d6082336
Some improvements
2018-03-14 03:10:24 +02:00
cheatfate
055aa5b23e
Initial refactoring to use Static[T].
2018-03-14 02:03:44 +02:00
cheatfate
61ca2d1b3d
Simple example
2018-03-13 14:25:41 +02:00
cheatfate
5df0a4f2b6
First attempt
2018-03-13 14:20:45 +02:00
cheatfate
7dd93fd461
Add keccak support for hmac
2018-03-12 00:44:43 +02:00