Algorithms not matching. Copy and paste error ?

Hello,

you might want to check these two sections in "AS2MessageParser.java" of AS2 version b57:


:
} else if (signDigest == AS2Message.SIGNATURE_SHA3_512) {
digest = BCCryptoHelper.ALGORITHM_SHA3_384;
:
} else if (signDigest == AS2Message.SIGNATURE_SHA3_512_RSASSA_PSS) {
digest = BCCryptoHelper.ALGORITHM_SHA3_384_RSASSA_PSS;
:

I was irritated that algorithms are not matching
Could this be a copy and paste error ?
Or is it intended like this ?

Regards

Forum
AS2

Comments

Hello,

it looks like there is a similar situation in "AS2MessageCreation.java":


:
} else if (info.getSignType() == AS2Message.SIGNATURE_SHA3_384 || info.getSignType() == AS2Message.SIGNATURE_SHA3_384_RSASSA_PSS) {
info.setReceivedContentMIC(mic + ", " + BCCryptoHelper.ALGORITHM_SHA3_256);
:

Regards

Profile picture for user service

xtown99b,

thank you for reporting these problems, its fixed for the next version.

Regards