Cryptographic Token Interface Standard

PKCS#11


HMAC mechanisms

Refer RFC2104 and FIPS 198 for HMAC algorithm description. The HMAC secret key shall correspond to the PKCS11 generic secret key type. Such keys, for use with HMAC operations can be created using C_CreateObject or C_GenerateKey.

The RFC also specifies test vectors for the various hash function based HMAC mechanisms described in the respective hash mechanism descriptions. The RFC should be consulted to obtain these test vectors.


RSA Security Inc. Public-Key Cryptography Standards - PKCS#11 - v220