Module rustc::util::sha2[src]
This module implements only the Sha256 function since that is all that is needed for internal use. This implementation is not intended for external use or for any use where security is important.
Structs
| Sha256 | The SHA-256 hash algorithm |
Traits
| Digest | The Digest trait specifies an interface common to digest functions, such as SHA-1 and the SHA-2 family of digest functions. |
| FixedBuffer | A FixedBuffer, likes its name implies, is a fixed size buffer. When the buffer becomes full, it must be processed. The input() method takes care of processing and then clearing the buffer automatically. However, other methods do not and require the caller to process the buffer. Any method that modifies the buffer directory or provides the caller with bytes that can be modified results in those bytes being marked as used by the buffer. |
| StandardPadding | The StandardPadding trait adds a method useful for Sha256 to a FixedBuffer struct. |
| ToBits |