- opSha1<State>(__namedParameters?: {
sha1: {
hash: ((input: Uint8Array) => Uint8Array);
};
}): Operation<State>
-
Parameters
-
__namedParameters: {
sha1: {
hash: ((input: Uint8Array) => Uint8Array);
};
} = ...
-
sha1: {
hash: ((input: Uint8Array) => Uint8Array);
}
-
hash: ((input: Uint8Array) => Uint8Array)
-
- (input: Uint8Array): Uint8Array
-
Returns Uint8Array
Returns the sha1 hash of the provided input.
To incrementally construct a sha1 hash (e.g. for streaming), use
init
,update
, andfinal
.