Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Sep 19, 2024
1 parent 2aebfb2 commit b34186e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 25 additions & 0 deletions router/crypto_spec.gobra
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2022 ETH Zurich
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// +gobra

// Assumptions related to cryptography, based on the paper
// https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10179325

package router

// TODO:
// - drop AbsUInfoFromUint16(...), compute set of from the sequence of hopfields and ConsDir. Prove that, if crypto check passes, the set is properly updated (need to axiomoatize xor)
// - see if we can introduce a gamma function
// - return seq. of HVFs from the receive function, which is compatible w/ absPkt if packets are well formed
2 changes: 0 additions & 2 deletions verification/io/router.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

package io

// TODO: make individual_router an interface type with the following methods

ghost
decreases
pure func if2term(ifs option[IO_ifs]) IO_msgterm {
Expand Down

0 comments on commit b34186e

Please sign in to comment.