a b@s ddlZGdddejdZdS)Nc@s:eZdZejeedddZejeeddddZdS)KeyDerivationFunction) key_materialreturncCsdS)zo Deterministically generates and returns a new key based on the existing key material. N)selfrrrR/tmp/pip-target-98j97qn4/lib/python/cryptography/hazmat/primitives/kdf/__init__.pyderive szKeyDerivationFunction.deriveN)r expected_keyrcCsdS)z Checks whether the key generated by the key material matches the expected derived key. Raises an exception if they do not match. Nr)rrr rrrverifyszKeyDerivationFunction.verify)__name__ __module__ __qualname__abcabstractmethodbytesrr rrrrr sr) metaclass)rABCMetarrrrrs