java.lang.Object
net.i2p.crypto.KeyPair
net.i2p.router.crypto.ratchet.Elg2KeyPair
X25519 key pair with pre-calculated Elligator2-encoded public key.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionElg2KeyPair(PublicKey publicKey, PrivateKey privateKey, byte[] enc) Key pair from the given keys and the pre-encoded public key.Method Summary
All MethodsModifier and TypeMethodDescriptionbyte[]The pre-calculated Elligator2-encoded public key.Methods inherited from class KeyPair
getPrivate, getPublicModifier and TypeMethodDescriptionPrivate key of this keypair.Public key of this keypair.
Field Details
encoded
private final byte[] encodedThe key in its encoded form.
Constructor Details
Elg2KeyPair
Key pair from the given keys and the pre-encoded public key.- Parameters:
publicKey- the public keyprivateKey- the private keyenc- the encoded Elligator2 public key
Method Details
getEncoded
public byte[] getEncoded()The pre-calculated Elligator2-encoded public key.- Returns:
- the encoded Elligator2 public key