parameters: (self, hashes=None)
docstring: :param hashes: A dict of algorithm names pointing to lists of allowed
              hex digests
docstring_summary: :param hashes: A dict of algorithm names pointing to lists of allowed
              hex digests
docstring_tokens: : param hashes : A dict of algorithm names pointing to lists of allowed hex digests
function: def __init__(self, hashes=None):
          # type: (Dict[str, List[str]]) -> None
          """
          :param hashes: A dict of algorithm names pointing to lists of allowed
              hex digests
          """
          allowed = {}
          if hashes is not None:
              for alg, keys in hashes.items():
                  # Make sure values are always sorted (to ease equality checks)
                  allowed[alg] = sorted(keys)
          self._allowed = allowed
function_tokens: def __init__ ( self , hashes = None ) : # type: (Dict[str, List[str]]) -> None allowed = { } if hashes is not None : for alg , keys in hashes . items ( ) : # Make sure values are always sorted (to ease equality checks) allowed [ alg ] = sorted ( keys ) self . _allowed = allowed