Package org.paseto4j.version4
Class CryptoFunctions
- java.lang.Object
-
- org.paseto4j.version4.CryptoFunctions
-
public class CryptoFunctions extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]blake2b(int size, byte[] message, byte[] key)static byte[]sign(PrivateKey privateKey, byte[] msg)static booleanverify(PublicKey publicKey, byte[] msg, byte[] signature)static byte[]xchacha20(byte[] message, byte[] nonce, byte[] key)
-
-
-
Method Detail
-
xchacha20
public static byte[] xchacha20(byte[] message, byte[] nonce, byte[] key)
-
blake2b
public static byte[] blake2b(int size, byte[] message, byte[] key)
-
sign
public static byte[] sign(PrivateKey privateKey, byte[] msg)
-
verify
public static boolean verify(PublicKey publicKey, byte[] msg, byte[] signature)
-
-