So I looked at the link you provided and yes that library has the encrypt and decrypt function for pkey:
encrypt (key, data, string)
decrypt (key, data, string)
Those functions don’t exist at least not as subfunctions of pkey since the library doesn’t even have pkey. This is what I get when I serialize the library to json. pkcs7_encrypt might do the trick since the format Amazon expects is similar, but I can’t figure out the parameters of that function.
"pkcs12\_export":"\<type 'function' is not supported by JSON.\>", "pkcs12\_read":"\<type 'function' is not supported by JSON.\>", "pkcs7\_decrypt":"\<type 'function' is not supported by JSON.\>", "pkcs7\_encrypt":"\<type 'function' is not supported by JSON.\>", "pkcs7\_read":"\<type 'function' is not supported by JSON.\>", "pkcs7\_sign":"\<type 'function' is not supported by JSON.\>", "pkcs7\_verify":"\<type 'function' is not supported by JSON.\>", "pkey\_new":"\<type 'function' is not supported by JSON.\>", "pkey\_read":"\<type 'function' is not supported by JSON.\>"
Anyway Dev, I appreciate a lot you looking for that link for me. Thank you.