https://github.com/oracle/oci-python-sdk/blob/master/examples/kms_example.py line 251, response = key_crypto_client.encrypt(decrypt_data_details) ================= should use decrypt function, not encrypt.