Package dev.paseto.jpaseto.impl.crypto
Interface V1LocalCryptoProvider
-
- All Known Implementing Classes:
BaseV1LocalCryptoProvider
public interface V1LocalCryptoProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description byte[]decrypt(byte[] encryptedBytes, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)static byte[]doCipher(int mode, byte[] key, byte[] nonce, byte[] input)byte[]encrypt(byte[] payload, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)default byte[]nonce(byte[] payload, byte[] randomBytes)
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] payload, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)
-
decrypt
byte[] decrypt(byte[] encryptedBytes, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)
-
nonce
default byte[] nonce(byte[] payload, byte[] randomBytes)
-
doCipher
static byte[] doCipher(int mode, byte[] key, byte[] nonce, byte[] input)
-
-