Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KMAC interop #3

Open
slontis opened this issue Mar 19, 2019 · 5 comments
Open

KMAC interop #3

slontis opened this issue Mar 19, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@slontis
Copy link

slontis commented Mar 19, 2019

This is more of a request than an issue..
I was wondering if you could spit out some test vectors for KMAC128 and KMAC256.

If so I can interop against them in openssl.

Cheers
Shane

@patrickfav
Copy link
Owner

patrickfav commented Mar 19, 2019

Java 9 should have the keccak algorithm built in. I'll try to throw something together.

@patrickfav patrickfav added enhancement New feature or request question Further information is requested labels Mar 19, 2019
@patrickfav patrickfav self-assigned this Mar 19, 2019
@slontis
Copy link
Author

slontis commented Mar 19, 2019

Thanks for that..

In the file where I pull in your data and reformat it, I have just put this reference to your wiki in...

#There are currently no official test vectors for Single Step KDF
#https://github.com/patrickfav/singlestep-kdf/wiki/NIST-SP-800-56C-Rev1:-Non-Official-Test-Vectors

Are you ok with this?

@patrickfav
Copy link
Owner

patrickfav commented Mar 19, 2019

Are you ok with this?

Sure :)

(link to openssl PR for reference: openssl/openssl#8230)

Btw: you could generate your own test vectors (and modifying the output format), by using https://github.com/patrickfav/singlestep-kdf/blob/master/src/test/java/at/favre/lib/crypto/references/TestVectorGen.java

@slontis
Copy link
Author

slontis commented Mar 20, 2019

Hmmm I dont think KMAC is supported in java
I cant seem to see KMAC in the mac algorithms (at least in the jdk9 docs)

@patrickfav
Copy link
Owner

You are mostly correct. SHA-3 is implemented in Java9, but not SHAKE*, cSHAKE or KMAC unfortunately. Will have to resort to 3rd party libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants