BACAP test vectors (from hpqc) and randomized round-trip tests #
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.
Instances For
Equations
- hexOfPubBytes v = Cryptlib.Util.newhex.byteArrayToHex { data := v.toArray }
Instances For
Equations
- hexOfSigBytes s = Cryptlib.Util.newhex.byteArrayToHex { data := s.toArray }
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
The cap's index, advanced by n steps.
Equations
- advancedIndex wc n = if n > 0 then wc.messageBoxIndex.advanceIndexTo (wc.messageBoxIndex.idx64 + n.toUInt64) else some wc.messageBoxIndex
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.
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.
Instances For
A freshly generated cap encrypts, verifies and decrypts.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alice writes three boxes; Bob, holding only the read cap, derives their IDs and reads them.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A read cap from bytes, or none if the length or the root key is wrong.
Equations
Instances For
A write cap from bytes, or none if the length is wrong or the key halves disagree.
Equations
Instances For
An optional hex field: absent reads as empty.
Equations
- optHexField j k = match j.getObjVal? k with | Except.ok a => hexField j k | Except.error a => pure ByteArray.empty
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.
Instances For
def
reachable
(rc : Cryptlib.Protocols.BACAP.Types.ReadCap)
(idx : Cryptlib.Protocols.BACAP.Types.MessageBoxIndex)
:
Whether idx is on the cap's stream, by contains and by positionAt.
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.
Instances For
Equations
- One or more equations did not get rendered due to their size.