# Path: resources/lib/nvhttp/pairinghash/abstractpairinghash.py
# class AbstractPairingHash:
#     __metaclass__ = ABCMeta
# 
#     def __init__(self):
#         pass
# 
#     @abstractmethod
#     def get_hash_length(self):
#         pass
# 
#     @abstractmethod
#     def hash_data(self, data):
#         pass


import hashlib
from resources.lib.nvhttp.pairinghash.abstractpairinghash import AbstractPairingHash



class Sha1PairingHash(AbstractPairingHash):
    def get_hash_length(self):
        return 20

    def hash_data(self, data):

# Path: resources/lib/nvhttp/pairinghash/abstractpairinghash.py
# class AbstractPairingHash:
#     __metaclass__ = ABCMeta
# 
#     def __init__(self):
#         pass
# 
#     @abstractmethod
#     def get_hash_length(self):
#         pass
# 
#     @abstractmethod
#     def hash_data(self, data):
#         pass


# Path: resources/lib/nvhttp/pairinghash/sha1pairinghash.py
import hashlib
from resources.lib.nvhttp.pairinghash.abstractpairinghash import AbstractPairingHash




class Sha1PairingHash(AbstractPairingHash):
    def get_hash_length(self):
        return 20

    def hash_data(self, data):

        m = hashlib.sha1()