Package com.wireguard.crypto
Class Ed25519
- java.lang.Object
-
- com.wireguard.crypto.Ed25519
-
public final class Ed25519 extends java.lang.Object
Implementation of Ed25519 signature verification.This implementation is based on the ed25519/ref10 implementation in NaCl.
It implements this twisted Edwards curve:
-x^2 + y^2 = 1 + (-121665 / 121666 mod 2^255-19)*x^2*y^2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
verify(byte[] message, byte[] signature, byte[] publicKey)
Returns true if the EdDSAsignature
withmessage
, can be verified withpublicKey
.
-