java.lang.Object
net.anwiba.commons.crypto.CryptoUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]getDecodedBytes(byte[] key, byte[] array) static byte[]getEncodedBytes(byte[] key, byte[] buffer) static byte[]performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter, byte[] array) static byte[]performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter, InputStream inputStream) static byte[]performEncoding(org.bouncycastle.crypto.params.KeyParameter keyParameter, byte[] array) static byte[]sign(byte[] data) static String
-
Constructor Details
-
CryptoUtilities
public CryptoUtilities()
-
-
Method Details
-
sign
- Throws:
CodingException
-
sign
- Throws:
CodingException
-
getEncodedBytes
- Throws:
CodingException
-
getDecodedBytes
- Throws:
CodingException
-
performDecoding
public static byte[] performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter, byte[] array) throws org.bouncycastle.crypto.DataLengthException, IllegalStateException, org.bouncycastle.crypto.InvalidCipherTextException, IOException - Throws:
org.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionIOException
-
performDecoding
public static byte[] performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter, InputStream inputStream) throws org.bouncycastle.crypto.InvalidCipherTextException, org.bouncycastle.crypto.DataLengthException, IllegalStateException, IOException - Throws:
org.bouncycastle.crypto.InvalidCipherTextExceptionorg.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionIOException
-
performEncoding
public static byte[] performEncoding(org.bouncycastle.crypto.params.KeyParameter keyParameter, byte[] array) throws org.bouncycastle.crypto.DataLengthException, IllegalStateException, org.bouncycastle.crypto.InvalidCipherTextException, IOException - Throws:
org.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionIOException
-