magma - v0.1.3
    Preparing search index...

    Function mac

    • Compute MAC (CMAC, OMAC1) with Magma cipher

      Parameters

      • key: Uint8Array

        Encryption key

      • data: Uint8Array

        Input data

      • sbox: Sbox = sboxes.ID_TC26_GOST_28147_PARAM_Z

        Optional substitution box, defaults to ID_TC26_GOST_28147_PARAM_Z

      Returns Uint8Array