Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow changing of data size in ByteContainer.setBytes(byte[], short, …
…short). The motivation for this patch is github-af/SmartPGP#40. However, this workaround avoids looking at the underlying problem: ECKeyImpl(byte, short) should not initialize the DomainParameters (according to its own docs), but does. This leads to problems with NIST P-521 because the default parameter for b has a leading zero bit that gets stripped, leading to a change in data size, when SmartPGP later sets b explicitly with the leading zero bit intact.
- Loading branch information