RandomAndPrime refactors SecureRandom into the following hierarchy:
with a short, well-considered API. RandomGenerator provides:
nextBits:, nextBytes:, nextFrom:to:, and nextInt:
Subclasses must implement nextBits: and nextBytes:.
With these new versions, you may then load
which adds a Fortuna subclass exactly as specified by Practical
The changes to Cryptography-Core include:
- implemented BlockCipherMode>>#destroy to avoid potential leakage.
- minor improvements to CTR mode.
- changed HashFunction>>#doubleHashMessage: to answer a ByteArray
(LSB first) intead of an Integer.