Class OmemoAesCipher
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.internal.OmemoAesCipher
-
public class OmemoAesCipher extends Object
-
-
Constructor Summary
Constructors Constructor Description OmemoAesCipher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decryptAesGcmNoPadding(byte[] ciphertext, byte[] key, byte[] initializationVector)
static byte[]
encryptAesGcmNoPadding(byte[] plaintext, byte[] key, byte[] initializationVector)
static byte[]
encryptAesGcmNoPadding(String plaintext, byte[] key, byte[] initializationVector)
-
-
-
Constructor Detail
-
OmemoAesCipher
public OmemoAesCipher()
-
-
Method Detail
-
decryptAesGcmNoPadding
public static byte[] decryptAesGcmNoPadding(byte[] ciphertext, byte[] key, byte[] initializationVector) throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
-
encryptAesGcmNoPadding
public static byte[] encryptAesGcmNoPadding(byte[] plaintext, byte[] key, byte[] initializationVector) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException
-
encryptAesGcmNoPadding
public static byte[] encryptAesGcmNoPadding(String plaintext, byte[] key, byte[] initializationVector) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException
-
-