aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/hash/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/hash/hash.go')
-rw-r--r--libgo/go/hash/hash.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/go/hash/hash.go b/libgo/go/hash/hash.go
index 8598f4e..aa895cf 100644
--- a/libgo/go/hash/hash.go
+++ b/libgo/go/hash/hash.go
@@ -22,6 +22,12 @@ type Hash interface {
// Size returns the number of bytes Sum will return.
Size() int
+
+ // BlockSize returns the hash's underlying block size.
+ // The Write method must be able to accept any amount
+ // of data, but it may operate more efficiently if all writes
+ // are a multiple of the block size.
+ BlockSize() int
}
// Hash32 is the common interface implemented by all 32-bit hash functions.