GenerateDataEncryptionKey

POST {{cryptoEndpoint}}/20180608/generateDataEncryptionKey

Generates a key that you can use to encrypt or decrypt data.

Request Body

{"keyId"=>"<string>", "keyShape"=>{"algorithm"=>"AES", "length"=>"<integer>", "curveId"=>"NIST_P384"}, "includePlaintextKey"=>"<boolean>", "associatedData"=>{"consequat_9"=>"<string>", "tempor_01"=>"<string>"}, "loggingContext"=>{"eaa7"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique identifier for the request. If provided, the returned request ID
will include this value. Otherwise, a random request ID will be
generated by the service.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;ciphertext&quot;:&quot;\u003cstring\u003e&quot;,&quot;plaintext&quot;:&quot;\u003cstring\u003e&quot;,&quot;plaintextChecksum&quot;:&quot;\u003cstring\u003e&quot;}