bc-java
bc-java copied to clipboard
XMSS SHAKE256 not aligned with NIST
Dear maintainers,
NIST has selected the following set of parameters for SHAKE256. The digest size is set to 32 (https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-208.pdf).
At the moment, I expect the implementation follows RFC8391 (https://datatracker.ietf.org/doc/html/rfc8391#section-5.3) which precedes the NIST SP.
Can the code be updated to return 32 instead of 64 also for SHAKE256?
https://github.com/bcgit/bc-java/blob/126ac9e14a0f56fae088973a777f1f90a521fd82/core/src/main/java/org/bouncycastle/pqc/crypto/xmss/XMSSUtil.java#L287