virgil_crypto.hashes package¶
Submodules¶
virgil_crypto.hashes.fingerprint module¶
-
class
virgil_crypto.hashes.fingerprint.
Fingerprint
(fingerprint_data)[source]¶ Bases:
object
Fingerprint container class.
Class provides methods for importing and exporting fingerprints.
-
classmethod
from_hex
(fingerprint_hex)[source]¶ Creates new Fingerprint from hex.
Parameters: fingerprint_hex – hex string of the fingerprint. Returns: Imported Fingerprint.
-
to_hex
¶ Fingerprint data in hexadecimal.
Returns: Hexademical fingerprint representation.
-
value
¶ Raw fingerprint value.
Returns: Fingerprint bytes.
-
classmethod
virgil_crypto.hashes.hash_algorithm module¶
-
class
virgil_crypto.hashes.hash_algorithm.
HashAlgorithm
[source]¶ Bases:
object
Enumeration containing supported Algorithms
-
MD5
= 0¶
-
SHA1
= 1¶
-
SHA224
= 2¶
-
SHA256
= 3¶
-
SHA384
= 4¶
-
SHA512
= 5¶
-
exception
UnknownAlgorithmException
(algorithm)[source]¶ Bases:
Exception
Exception raised when Unknown Algorithm passed to convertion method
-
classmethod
convert_to_native
(algorithm)[source]¶ Converts algorithm enum value to native value
Parameters: algorithm – algorithm for conversion. Returns: Native library algorithm id. Raises: UnknownAlgorithmException
– if algorithm is not supported.
-