Class: AESKey

AESKey

new AESKey(key, bits)

An AES key object for encrypting and decrypting blocks.

Parameters:
Name Type Description
key Buffer
bits Number
Source:

Methods

decryptBlock(input) → {Buffer}

Decrypt a 16 byte block of data.

Parameters:
Name Type Description
input Buffer
Source:
Returns:
Type
Buffer

destroy()

Destroy the object and zero the keys.

Source:

encryptBlock(input) → {Buffer}

Encrypt a 16 byte block of data.

Parameters:
Name Type Description
input Buffer
Source:
Returns:
Type
Buffer

getDecryptKey() → {Uint32Array}

Convert the user key into a decryption key.

Source:
Returns:

key

Type
Uint32Array

getEncryptKey() → {Uint32Array}

Convert the user key into an encryption key.

Source:
Returns:

key

Type
Uint32Array