public boolean verifySignature ( byte [ ] publicKey , byte [ ] message , byte [ ] signature ) { if ( publicKey == null || publicKey . length != 32 ) { throw new IllegalArgumentException ( "Invalid public key!" ) ; } if ( message == null || signature == null || signature . length != 64 ) { return false ; } return provider . verifySignature ( publicKey , message , signature ) ; }
Verify a Curve25519 signature .