Replies: 2 comments 3 replies
-
|
Ok. It seems that I need to provide private key. So I create an ed25519 private key through following code ... gen = Ed25519KeyPairGenerator()
... gen.init(new KeyGenerationParameters(new SecureRandom, 128))
final ... keypair = gen.generateKeyPair()
final ... privateKey = (...) keypair.getPrivate()
final ... privKeyBytes = privateKey.getEncoded()But when passing that privateKeyBytes variable to if (key.length != 16)
{
throw new IllegalArgumentException("'params' must be a 128-bit key");
}I specify KeyGenerationParameters's key size 128. This does not change the key length. The key length remains 32. How to fix this so that the key passed in can be 128 bit? Thanks. I appreciate any suggestions. |
Beta Was this translation helpful? Give feedback.
-
|
The BC provider uses |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use Bouncy Castle Java 1.8.2 SipHash class. When checking how to use SipHash, I notice the SipHashTest provides the procedure, which is nice. Thanks for detailing the test case. So my understanding the basic flow of using SipHash should be
Now my problems
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions