KotlinCrypto / hash

Cryptographic hash functions for Kotlin Multiplatform
Apache License 2.0
56 stars 5 forks source link

Add SipHash implementation #54

Closed Entreco closed 8 months ago

Entreco commented 8 months ago

SipHash is an ARX based family of pseudorandom functions created by Jean-Philippe Aumasson and Daniel J. Bernstein. It is suitable as a message authentication code: a keyed hash function like HMAC

https://en.wikipedia.org/wiki/SipHash

I took the java implementation from Whitfin (https://github.com/whitfin/siphash-java) so it is multiplatform now. Personally, I do not have a lot of multiplatform experience, so let me know if there is something missing

Entreco commented 8 months ago

Possible solution for #55

05nelsonm commented 8 months ago

This repository is for implementations that extend the Digest abstraction.

SipHash is a MAC and would be implemented in the MACs repository. It would need to extend and conform to the Mac abstraction.