Namespace: go.std.crypto.sha1
v1.0Contents
Summary
Provides a low-level interface to the crypto/sha1 package.
Package sha1 implements the SHA-1 hash algorithm as defined in RFC 3174.
SHA-1 is cryptographically broken and should not be used for secure
applications.
Index
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
BlockSize
Int v1.0The blocksize of SHA-1 in bytes.
-
Size
Int v1.0The size of a SHA-1 checksum in bytes.
Variables
-
(None.)
Functions, Macros, and Special Forms
-
New
Function v1.0(New)
New returns a new hash.Hash computing the SHA1 checksum. The Hash also
implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to
marshal and unmarshal the internal state of the hash.
Go returns: hash.Hash
Joker input arguments: []
Joker returns: ^go.std.hash/Hash -
Sum
Function v1.0(Sum data)
Sum returns the SHA-1 checksum of the data.
Go input arguments: (data []byte)
Go returns: [20]byte
Joker input arguments: [^arrayOfByte data]
Joker returns: ^array20OfByte
Types
-
(None.)