Documentation

Cryptlib.Protocols.BACAP.test

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
    def unwrap {α : Type} :
    Except String α → IO α
    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.
        Instances For
          Equations
          Instances For
            structure MBIVec :
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                structure BoxIDVec :
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    structure EncryptVec :
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        structure MutateVec :
                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def loadVectors {α : Type} (path primName : String) (parse : Lean.Json → Except String α) :
                            IO (Array α)
                            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
                                    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

                                          The next n indices of a ratchet, starting at start itself.

                                          Equations
                                          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
                                              def toVec (n : ℕ) (b : ByteArray) :
                                              Equations
                                              Instances For

                                                A write cap from bytes, or none if the length is wrong or the key halves disagree.

                                                Equations
                                                Instances For
                                                  Equations
                                                  Instances For

                                                    An optional hex field: absent reads as empty.

                                                    Equations
                                                    Instances For
                                                      def report (ok : Bool) (name : String) (why : String := "") :
                                                      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

                                                            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

                                                                Whether this implementation rejects the input a negative vector describes.

                                                                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