sign a message

def sign(self, msg):
        """sign a message"""
        signature = SHA256.new()
        signature.update(self._mackey1)
        signature.update(msg)
        signature.update(self._mackey2)
        return signature.digest()