truncatedASN1Field Error while decrypting SecKeyCreateDecryptedData

Hello,

I am encountering truncatedASN1Field issue while decrypting with SecKeyCreateDecryptedData of encrypted data which is encrypted by SecKeyCreateEncryptedData. It especially happening when I transfer the encrypted data in Base64 format. I am using iPads as clients to generate p256 signing keys and using those public keys to encrypt data (256bit keys).

Please let me know how I can resolve this issue.

**Additional Information: ** Example code https://swiftfiddle.com/6nx5itskhfg5jbtywruoj64kpm which works in same PC but not in between the clients.

I'll respond on your original thread.

truncatedASN1Field Error while decrypting SecKeyCreateDecryptedData
 
 
Q