Package fr.dyade.aaa.common.crypto
Interface Crypto
-
- All Known Implementing Classes:
AESGCMTools,AESTool,CryptoTool,VoidTool
public interface Crypto
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]decrypt(byte[] encrypted)byte[]decrypt(byte[] encrypted, byte[] nonce)byte[]decrypt(byte[] encrypted, int offset, int length)byte[]decrypt(byte[] encrypted, int offset, int length, byte[] nonce)byte[]encrypt(byte[] input)byte[]encrypt(byte[] input, byte[] nonce)byte[]encrypt(byte[] input, int offset, int length)byte[]encrypt(byte[] input, int offset, int length, byte[] nonce)
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] input) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
encrypt
byte[] encrypt(byte[] input, int offset, int length) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
encrypt
byte[] encrypt(byte[] input, byte[] nonce) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
encrypt
byte[] encrypt(byte[] input, int offset, int length, byte[] nonce) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
decrypt
byte[] decrypt(byte[] encrypted) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
decrypt
byte[] decrypt(byte[] encrypted, int offset, int length) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
decrypt
byte[] decrypt(byte[] encrypted, byte[] nonce) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
decrypt
byte[] decrypt(byte[] encrypted, int offset, int length, byte[] nonce) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
-