Ios swift – AES/GCM/NoPadding encryption in Swift iOS (min deployment 12.1) doesn't produce expected ciphertext length
I'm implementing AES/GCM/NoPadding encryption in Swift for iOS with a minimum deployment target of 12.1. I'm trying to achieve similar functionality as my Java code below: Cipher cipherAes = initCipher(Cipher.ENCRYPT_MODE, key, iv); byte[] encryptedMessageByte = cipherAes.doFinal(messageBytes); byte[] cipherByte = ByteBuffer.allocate(iv.length…