-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix #451: Allow overriding length of decimalized signatures #452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice improvement, however I do not like the "magical" behaviour. E.g. when signature length is set to 2, the actual signature length is 4. We should reject invalid setting in my opinion, because this can lead to misleading implementations.
...to/src/main/java/io/getlime/security/powerauth/crypto/lib/config/SignatureConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found mostly the same issues as @romanstrobl
...ypto/src/test/java/io/getlime/security/powerauth/crypto/lib/util/GenerateVectorDataTest.java
Outdated
Show resolved
Hide resolved
...to/src/main/java/io/getlime/security/powerauth/crypto/lib/config/SignatureConfiguration.java
Outdated
Show resolved
Hide resolved
...-java-crypto/src/main/java/io/getlime/security/powerauth/crypto/lib/util/SignatureUtils.java
Show resolved
Hide resolved
...-java-crypto/src/main/java/io/getlime/security/powerauth/crypto/lib/util/SignatureUtils.java
Outdated
Show resolved
Hide resolved
I will have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK now. The last thing that's missing is a short note in the documentation about this option.
...to/src/main/java/io/getlime/security/powerauth/crypto/lib/config/SignatureConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution for the configuration, thanks!
No description provided.