magma - v0.1.3
    Preparing search index...

    Variable decryptCTRConst

    decryptCTR: (
        key: Uint8Array,
        data: Uint8Array,
        iv: Uint8Array,
        sbox?: Sbox,
    ) => Uint8Array = encryptCTR

    Decrypts data using the Counter (CTR) mode with Magma cipher.

    Type declaration

      • (key: Uint8Array, data: Uint8Array, iv: Uint8Array, sbox?: Sbox): Uint8Array
      • Encrypts data using the Counter (CTR) mode with Magma cipher.

        Parameters

        • key: Uint8Array

          Encryption key

        • data: Uint8Array

          Data to be encrypted

        • iv: Uint8Array

          Initialization vector

        • sbox: Sbox = sboxes.ID_TC26_GOST_28147_PARAM_Z

          Optional substitution box, defaults to ID_TC26_GOST_28147_PARAM_Z

        Returns Uint8Array

    Encryption key

    Data to be decrypted

    Initialization vector

    Optional substitution box, defaults to ID_TC26_GOST_28147_PARAM_Z