Loading…

Kryptel/Java

MAC Functions (package com.kryptel.mac)

Description

This package includes only HMAC component at the moment. No high-level components use CMAC so there is only a placeholder for that.

MAC Function Class Name Component ID
HMAC Hmac CID_HMAC

Interfaces

HMAC supports the standard hash function interfaces IHashFunction, IHashFunctionParams, and IMemoryBlockHash. The only additional interface IMacSetup is used for setting up HMAC and linking it to the base hash function.

IMacSetup

Sets HMAC's key and base hash function.

Examples

Computing String HMAC

A function that accepts a string and returns its HMAC.