Decrypt PHP ChaChaPoly encrypted data in Swift
I am trying to decrypt data with Swift CryptoKit that I have encrypted with php using openssl_encrypt() chacha20-poly1305. Encrypting works, but when decrypting I get the error: incorrectParameterSize (Swift: error 1, line 10). PHP encryption using openssl_encrypt: <?php $plaintext =…