575fdbe86e5dd89229707ebec0575ce7d088a4a6
A bug in the PBKDF implementation in the pkcs12 package caused certain inputs to produce the wrong output. In step 6C, we treat Ij as a big.Int of v bytes and compute Ij + B + 1. The resulting big.Int can have leading zero bytes, such that Ij.Bytes() produces a byte array that is smaller than v bytes. In this case we must zero-pad the output to make Ijb properly sized. Change-Id: I6e672e6f6bbbd5bea419355d318db289731bb174 Reviewed-on: https://go-review.googlesource.com/16520 Reviewed-by: Adam Langley <agl@golang.org>
This repository holds supplementary Go cryptography libraries. To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
Mirror of ys-ll/crypto (GitHub), kept for paraterm builds
https://golang.org/x/crypto
8.1 MiB
Languages
Go
88.6%
Assembly
11.1%
C
0.3%