125 """ |
125 """ |
126 try: |
126 try: |
127 digestname, iterations, salt = hashParameters.split(Delimiter) |
127 digestname, iterations, salt = hashParameters.split(Delimiter) |
128 except ValueError: |
128 except ValueError: |
129 raise ValueError( |
129 raise ValueError( |
130 "Expected hash parameters string in format "\ |
130 "Expected hash parameters string in format " |
131 "'digestmod{0}iterations{0}salt".format(Delimiter)) |
131 "'digestmod{0}iterations{0}salt".format(Delimiter)) |
132 |
132 |
133 if digestname not in Hashes.keys(): |
133 if digestname not in Hashes.keys(): |
134 raise ValueError( |
134 raise ValueError( |
135 "Unsupported hash algorithm '{0}' for hash parameters '{1}'." |
135 "Unsupported hash algorithm '{0}' for hash parameters '{1}'." |