erg_compiler 0.6.53

Centimetre: the Erg compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
.HMAC!: ClassType
.HMAC!.
    digest_size: Nat
    block_size: Nat
    name: Str
    update!: (self: RefMut(.HMAC!), msg: Bytes) => NoneType
    digest: (self: Ref(.HMAC!)) -> Bytes
    hexdigest: (self: Ref(.HMAC!)) -> Str
    copy: (self: Ref(.HMAC!)) -> .HMAC!

.compare_digest: (a: Str or Bytes, b: Str or Bytes) -> Bool
.new: (key: Bytes, msg := Bytes, digestmod := Str or GenericCallable or GenericModule) -> .HMAC!
.digest: (key: Bytes, msg := Bytes, digest := Str or GenericCallable or GenericModule) -> Bytes