aes-cmac-prf-128

0.0.3 • Public • Published

AES-CMAC-PRF-128

Simple wrapper for aes-cmac to implement RFC4615's AES-CMAC-PRF-128 algorythm.

Example

const aesCmacPrf128 = require('aes-cmac-prf-128');

let key = Buffer.from('000102030405060708090a0b0c0d0e0fedcb', 'hex');
let msg = Buffer.from('000102030405060708090a0b0c0d0e0f10111213', 'hex');
console.log(aesCmacPrf128(key, msg));

API

/**
 * @param {(String|Buffer)} key
 * @param {(String|Buffer)} msg
 * @returns Buffer
 */
aesCmacPrf128(key, msg);

Package Sidebar

Install

npm i aes-cmac-prf-128

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ff