whiteflag-js
    Preparing search index...

    Function createAesKey

    • 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