Skip to content

Commit ade898f

Browse files
authored
Minor fix in the spec hash.gobra (#408)
1 parent fab87f7 commit ade898f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

verification/dependencies/hash/hash.gobra

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Hash interface {
4747
// It does not change the underlying hash state.
4848
preserves acc(Mem(), 1/1000)
4949
requires acc(b)
50-
ensures acc(res) && len(res) == Size()
50+
ensures acc(res) && len(res) == len(b) + Size()
5151
decreases
5252
Sum(b []byte) (res []byte)
5353

@@ -70,4 +70,4 @@ type Hash interface {
7070
ensures res >= 0
7171
decreases
7272
BlockSize() (res int)
73-
}
73+
}

0 commit comments

Comments
 (0)