An implementation of the Advance Encryption Standard Key Wrapping Algorithm (AES-KW) originally designed by NIST and formalized in RFC 3394

Constructors

Methods

Constructors

  • Constructs AESKW instance with the given key.

    Parameters

    • key: Uint8Array

    Returns AESKW

Methods

  • Cleans the buffers and underlying memory associated to the cipher.

    Returns this

  • Un-wraps a wrapped key using the key encryption key supplied in the constructor

    Parameters

    • wrappedKey: Uint8Array

    Returns Uint8Array

  • Wraps supplied key data with the key encryption key supplied in the constructor.

    Parameters

    • keyData: Uint8Array

    Returns Uint8Array