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 σ₁ α)
:
Run a total state action against the left half of a product state.
Instances For
The first a bytes of a concatenation.
Equations
- Cryptlib.Util.Combine.splitL v = Vector.cast ⋯ (v.take a)
Instances For
The remaining b bytes of a concatenation.
Equations
- Cryptlib.Util.Combine.splitR v = Vector.cast ⋯ (v.drop a)