Documentation
¶
Overview ¶
Package sha1cd implements collision detection based on the whitepaper Counter-cryptanalysis from Marc Stevens. The original ubc implementation was done by Marc Stevens and Dan Shumow, and can be found at: https://github.com/cr-marcstevens/sha1collisiondetection
Index ¶
Constants ¶
View Source
const BlockSize = shared.Chunk
The blocksize of SHA-1 in bytes.
View Source
const Size = shared.Size
The size of a SHA-1 checksum in bytes.
Variables ¶
This section is empty.
Functions ¶
func 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.
func NewGeneric ¶
NewGeneric is equivalent to New but uses the Go generic implementation, avoiding any processor-specific optimizations.
Types ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
ubc package provides ways for SHA1 blocks to be checked for Unavoidable Bit Conditions that arise from crypto analysis attacks.
|
ubc package provides ways for SHA1 blocks to be checked for Unavoidable Bit Conditions that arise from crypto analysis attacks. |
Click to show internal directories.
Click to hide internal directories.