We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is something wrong with func PKCS7Pad(data []byte) in https://github.com/mattetti/goRailsYourself/blob/master/crypto/pkcs7_padding.go#L5 . We can see k k ... k k -- if lth mod k = 0 from https://tools.ietf.org/html/rfc5652#section-6.3 . So I think it should append 16 byte(16) after origin data when dataLen%16 == 0 .
func PKCS7Pad(data []byte)
k k ... k k -- if lth mod k = 0
byte(16)
dataLen%16 == 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is something wrong with
func PKCS7Pad(data []byte)
in https://github.com/mattetti/goRailsYourself/blob/master/crypto/pkcs7_padding.go#L5 .We can see
k k ... k k -- if lth mod k = 0
from https://tools.ietf.org/html/rfc5652#section-6.3 .So I think it should append 16
byte(16)
after origin data whendataLen%16 == 0
.The text was updated successfully, but these errors were encountered: