UNPKG

aes-cmac

Version:

AES-CMAC implementation in typescript

20 lines (18 loc) 456 B
declare class AesCmac { private readonly blockSize; private readonly supportedLengths; private subkeys?; private key; constructor(key: Uint8Array); private generateSubkeys; getSubKeys(): Promise<{ key1: Uint8Array; key2: Uint8Array; }>; calculate(message: Uint8Array): Promise<Uint8Array>; private getBlockCount; private aes; private getLastBlock; private padding; } export { AesCmac };