As far as I can tell, AWS KMS Data Keys are AES-GCM keys. (source: https://d0.awsstatic.com/whitepapers/KMS-Cryptographic-Details.pdf page 13)
Does that mean I must use AES-GCM to encrypt data with them or will a AES-CBC algorithm work too? I am trying to use these KMS keys to encrypt data on iOS without including external dependencies.
I found CommonCrypto, and wrote some code that seems to work with the KMS data keys, but as far as I know CommonCrypto only supports AES-CBC.
I also can't seem to write working code in any language to then decrypt the cipher text generated. Is this because the output of my GCM key + CBC algorithm is garbage? Why doesn't my encryption code complain?
Also, is it possible to do AES-GCM encryption on iOS without CryptoKit?