mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
crypto/ecies: fix doc comment for roundup
This commit is contained in:
parent
026172acb5
commit
2215cdfef4
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ func concatKDF(hash hash.Hash, z, s1 []byte, kdLen int) []byte {
|
|||
return k[:kdLen]
|
||||
}
|
||||
|
||||
// roundup rounds size up to the nearest multiple of blocksize.
|
||||
// roundup rounds size up to the next multiple of blocksize.
|
||||
func roundup(size, blocksize int) int {
|
||||
return size + blocksize - (size % blocksize)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue