Amadis

Crypto Backend - APIs - HMAC

Compute the HMAC-SHA256 of a byte string.

Verb

POST

Resource

/api/cryptoprovider/v1/checksum

Content type

application/json

Body

{

“terminalid”: “<terminal ID>”,

“keyid”: “<key ID>”,

“data”: “<data>”

}

Where:

Field

Description

Field

Description

terminalid

ID of the terminal the key is to be created for.

keyid

ID of the key to be used for computing the checksum

data

Base64 encoded data to be hashed.

The response data is a JSON object with the following structure:

{

Field

Description

 

“checksum”:”<checksum>”

Base64 encoded HMAC-SHA256 checksum

}