Crate scsys_crypto

Source
Expand description

cryptographic primitives and utilities for the scsys ecosystem.

Modules§

error
hash
this implements various hashing primitives and utilities for cryptographic operations.
prelude
traits
utils

Structs§

H160
A SHA160 hash type.
H256
A SHA256 hash.

Enums§

CryptoError
a custom error type for the scsys-crypto crate

Traits§

Concat
this trait defines a common method for concatenating two entities into some new type.
Hash
The Hash trait establishes a common interface for hashing types.
Hashable
Hasher
A Hasher defines a common interface for defining specific hashing algorithm.
RawHash
RawHash defines a common interface for raw hash types.
SizedHash
SizedHash extends RawHash to include a constant size for the hash output.

Functions§

digest_to_hash

Type Aliases§

CryptoResult
a type alias for a Result type configured to use the CryptoError type
GenericHash
the GenericHash type alias defines a standard hash format for the crate
GenericHashOutput
a type alias for a generic hash output
H160Hash
The H160Hash type is a 20-byte hash.
H256Array
The [H256Hash] type is a 32-byte hash.