mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
18 lines
474 B
Python
18 lines
474 B
Python
.algorithms_guaranteed: {Str; _}
|
|
.algorithms_available: {Str; _}
|
|
|
|
.HASH!: ClassType
|
|
.HASH!.
|
|
name: Str
|
|
digest_size: Nat
|
|
block_size: Nat
|
|
digest: (self: Ref(.HASH!)) -> Bytes
|
|
hexdigest: (self: Ref(.HASH!)) -> Str
|
|
update!: (self: RefMut(.HASH!), b: Bytes) => NoneType
|
|
|
|
.new: (name: Str, b := Bytes) -> .HASH!
|
|
.md5: (b: Bytes) -> .HASH!
|
|
.sha1: (b: Bytes) -> .HASH!
|
|
.sha224: (b: Bytes) -> .HASH!
|
|
.sha256: (b: Bytes) -> .HASH!
|
|
.sha512: (b: Bytes) -> .HASH!
|