Skip to content

Doesn't compile with Go 1. #1

Description

@spikebike

Seems like the new way to build go packages does not include make files. I restructured the tree and get the following error:
$ go install crypto/threefish
$ go install crypto/skein

crypto/skein

../../../gopkg/src/crypto/skein/skein.go:94: cannot use h (type *Skein) as type hash.Hash in return argument:
*Skein does not implement hash.Hash (missing BlockSize method)

It looks pretty straight forward to add, but the go docs say:
// 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

What value should blocksize be set to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions