0.0.3 • Published 7 years ago

aes-cmac-prf-128 v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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);
0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago