Documentation

Cryptlib.Util.Combine

Combining two schemes #

Splitting a concatenated encoding, and running a state action against half of a product state.

def Cryptlib.Util.Combine.sliftL {σ₁ : Type (max u_1 u_2)} {σ₂ : Type u_2} {α : Type (max u_1 u_2)} (x : StateM σ₁ α) :
StateM (σ₁ × σ₂) α

Run a total state action against the left half of a product state.

Equations
Instances For
    def Cryptlib.Util.Combine.sliftR {σ₁ : Type u_1} {σ₂ α : Type (max u_2 u_1)} (x : StateM σ₂ α) :
    StateM (σ₁ × σ₂) α

    Run a total state action against the right half of a product state.

    Equations
    Instances For

      The first a bytes of a concatenation.

      Equations
      Instances For

        The remaining b bytes of a concatenation.

        Equations
        Instances For