nimcrypto icon indicating copy to clipboard operation
nimcrypto copied to clipboard

Nim cryptographic library

Results 18 nimcrypto issues
Sort by recently updated
recently updated
newest added

hey, I have a super weird bug, I wrote two functions: `encrypt_cbc` and `decrypt_cbc` - they both get `(string, key, iv)` and do their job great. Whenever I'm importing `winim/clr`...

Calling `sysrand.randomBytes` causes Valgrind to mark memory as "possibly lost." ## Example ```nim # proof.nim import nimcrypto/sysrand var x: int discard randomBytes(addr(x), sizeof(x)) ``` Compile ```console $ nim c --gc:arc...

decrypt from encrypted message doesn't restore. ```nim import nimcrypto/rijndael import nimcrypto/bcmode import base64, strutils var cbc : CBC[aes128] var key:string = "1234123412ABCDEF" var iv: string = "ABCDEF1234123412" var message: cstring="hello"...

Most modern CPUs offer specialized instructions for computing the SHA family of functions. For optimal power usage and maximum throughput in SSZ merkleization, we can benefit from such a hardware-accelerated...

IGE (Infinite Garbled Extension) isn't very well used in the crypto world, but it does exist. Telegram actually is the only service I know of that makes use of it,...

I'm not sure if there's something I'm doing improperly, but I tried instantiating a `CBC[blowfish]` context and `.init()` doesn't seem to work: ```nim import nimcrypto/blowfish import nimcrypto/bcmode var cbc: CBC[blowfish]...

When running the CFB example in the repo with blowfish, `ectx.init(key, iv)` fails in template instantiation because `ctx.cipher.init(unsafeAddr key[0])` doesn't exist for blowfish. Due to its variable key size, it...

currently, the F compression function of Blake2 in NimCrypto is hardcoded each for Blake2b and Blake2s. it is not reusable. use case: [EIP-152](https://eips.ethereum.org/EIPS/eip-152): Add Blake2 compression function `F` but this...

Some people quickly scan the README and don't see their cipher of choice.