Equations
- Cryptlib.Util.newhex.byteToHex b = toString (hexDigitRepr (b.toNat / 16)) ++ toString (hexDigitRepr (b.toNat % 16))
Instances For
Equations
- Cryptlib.Util.newhex.byteArrayToHex blob = ByteArray.foldl (fun (acc : String) (b : UInt8) => acc ++ Cryptlib.Util.newhex.byteToHex b) "" blob
Instances For
@[instance_reducible]
Equations
- Cryptlib.Util.newhex.instReprByteArray_cryptlib = { reprPrec := fun (a : ByteArray) (x : ℕ) => Std.Format.text (Cryptlib.Util.newhex.byteArrayToHex a) }
@[instance_reducible]
Equations
- Cryptlib.Util.newhex.instToStringByteArray_cryptlib = { toString := fun (x : ByteArray) => Cryptlib.Util.newhex.byteArrayToHex x }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cryptlib.Util.newhex.hexToByte high low = match Cryptlib.Util.newhex.hexCharToDigit high, Cryptlib.Util.newhex.hexCharToDigit low with | some h, some l => some (h <<< 4 ||| l) | x, x_1 => none
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.