fromHex(algorithm:hash:)

Create a new Hash from a hex string

static func fromHex(algorithm: String, hash: String) -> Hash?

Parameters

algorithm

name per https://xmpp.org/extensions/xep-0300.html

hash

in hex format

Return Value

Hash or null on error