Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
start(hashType:key:)
Initializes the HMACContext. This method cannot be called again on the same HMACContext until finish
has been called.
final func start(hashType: HashingContext.HashType, key: PackedByteArray) -> GodotError
Other members in extension
Type members
Instance members
func finish(
) -> PackedByteArray Returns the resulting HMAC. If the HMAC failed, an empty
PackedByteArray
is returned.func update(data: PackedByteArray
) -> GodotError Updates the message to be HMACed. This can be called multiple times before
finish
is called to appenddata
to the message, but cannot be called untilstart(hashType:key:)
has been called.