Class OmemoAesCipher
java.lang.Object
org.jivesoftware.smackx.omemo.internal.OmemoAesCipher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
OmemoAesCipher
public OmemoAesCipher()
-
-
Method Details
-
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
-