hashFromType function

HashAlgorithm hashFromType(
  1. ScramHashType type
)

Implementation

HashAlgorithm hashFromType(ScramHashType type) {
  switch (type) {
    case ScramHashType.sha1:
      return Sha1();
    case ScramHashType.sha256:
      return Sha256();
    case ScramHashType.sha512:
      return Sha512();
  }
}