Whiteflag JavaScript Library - v1.0.0
    Preparing search index...
    • Function

      Creates an AES encryption and decryption key createAesKey

      Parameters

      • rawKey: Uint8Array<ArrayBuffer>

        the raw key

      • algorithm: string = DEFAULT_ENCRYPTALG

        the AES mode to use the key for, default is CTR mode

      Returns Promise<CryptoKey>

      the AES enrcyption key