File hashing services
Provides
genkey() - Generates hash key sign() - Returns a signature for a given file verify() - Verifies file against signature
genkey() - Generates hash key
genkey()
sign() - Returns a signature for a given file
sign()
verify() - Verifies file against signature
verify()
Returns a random byte sting that may be used as signature key
nbytes (int) – Length of key
int
bytes
Random byte string of length nbytes
Returns signature for file using blake2b
Note: 64 bytes is the maximum that is supported in Python’s BLAKE2b
data (bytes) – Data to be signed
key (bytes) – Signature key, len(key) <= 64
File signature hexdigest, encoded in utf-8
Verifies a signature
data (bytes) – Data to be verified
signature (bytes) – Signature for verification
bool
True if verification was successful else False