keccak-tiny 1.2.1

Implementation of C lib keccak-tiny


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Keccak

Package implements keccak family functions

Example

import keccak;

auto data = cast(ubyte[]) "balanceOf(address)";

ubyte[256] hash1 = keccak256(data);

ubyte[256] hash2;
keccak_256(hash2.ptr, hash2.length, data.ptr, data.length);

ubyte[256] hash3;
keccakImpl!256(hash2[], source);

/// Could be also called in compile time!
static assert(keccak256(cast(ubyte[]) "hello")[0] == cast(ubyte) 28u);

References

  • port of: https://github.com/IoTone/keccak-tiny

Building and Testing

dub run  keccak-tiny
dub test keccak-tiny
Authors:
  • tynuk
Dependencies:
none
Versions:
1.2.1 2022-Aug-04
1.2.0 2022-Aug-04
1.1.0 2022-Feb-09
1.0.1 2022-Feb-08
1.0.0 2022-Feb-08
Show all 8 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 1 downloads this month

  • 244 downloads total

Score:
0.0
Short URL:
keccak-tiny.dub.pm