Equim-chan / cryptonight

:loop: Pure Go/ASM implementation of CryptoNight hash function with its variants, without any CGO binding.
MIT License
79 stars 10 forks source link

JH-based HKDF and PBKDF2 errors #4

Closed pedroalbanese closed 1 year ago

pedroalbanese commented 1 year ago

Greetings!

Could you tell me why I can't perform key derivation functions with the JH algorithm, as is possible with the other algorithms?

I mean, I don't know if it's the implementation or if it's a restriction of the algorithm itself, but it requires 32-byte salt for the PBKDF2 function and 32-byte info for the HKDF function.

Would it be possible to remedy this or is there another way to get around this limitation? How to proceed?

Thank you in advance.