5 hmac requests, 1 hmac_pad_req – Freescale Semiconductor SEC2SWUG User Manual

Page 18

Advertising
background image

SEC 2.0 Reference Device Driver User’s Guide, Rev. 0

18

PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE

Freescale Semiconductor

Individual Request Type Descriptions

4.5 HMAC Requests

4.5.1 HMAC_PAD_REQ

COMMON_REQ_PREAMBLE

unsigned long keyBytes;

unsigned char *keyData;

unsigned long inBytes;

unsigned char *inData;

unsigned long outBytes; /* length is fixed by algorithm */

unsigned char *outData;

NUM_HMAC_PAD_DESC

defines the number of descriptors within the

DPD_HASH_LDCTX_HMAC_ULCTX_GROUP

that

use this request.

DPD_HASH_LDCTX_HMAC_ULCTX_GROUP

(0x4A00) defines the group for all descriptors within this request.

Table 12. HASH_REQ Valid Descriptors (0x4500) (opId)

Descriptors

Value

Function Description

DPD_SHA256_LDCTX_HASH_PAD_ULCTX

0x4500

Compute digest with pre-padded data using an
SHA-256 hash algorithm then store the resulting
context

DPD_MD5_LDCTX_HASH_PAD_ULCTX

0x4501

Compute digest with pre-padded data using an MD5
hash algorithm then store the resulting context

DPD_SHA_LDCTX_HASH_PAD_ULCTX

0x4502

Compute digest with pre-padded data using an
SHA-1 hash algorithm then store the resulting context

DPD_SHA256_LDCTX_IDGS_HASH_PAD_ULCTX

0x4503

Compute digest with pre-padded data using an
SHA-256 IDGS hash algorithm then store the
resulting padded context

DPD_MD5_LDCTX_IDGS_HASH_PAD_ULCTX

0x4504

Compute digest with pre-padded data using an MD5
IDGS hash algorithm then store the resulting padded
context

DPD_SHA_LDCTX_IDGS_HASH_PAD_ULCTX

0x4505

Compute digest with pre-padded data using an
SHA-1 IDGS hash algorithm then store the resulting
padded context

Advertising