toName method
Return the hash function's name according to IANA's hash name register or XEP-0300.
Implementation
String toName() {
switch (this) {
case HashFunction.sha1:
return _hashSha1;
case HashFunction.sha256:
return _hashSha256;
case HashFunction.sha512:
return _hashSha512;
case HashFunction.sha3_256:
return _hashSha3512;
case HashFunction.sha3_512:
return _hashSha3512;
case HashFunction.blake2b256:
return _hashBlake2b256;
case HashFunction.blake2b512:
return _hashBlake2b512;
}
}