PHP 8.2.30
Preview: mac.py Size: 884 B
//proc/thread-self/root/lib64/python3.6/site-packages/cryptography/hazmat/primitives/mac.py

# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.

from __future__ import absolute_import, division, print_function

import abc

import six


@six.add_metaclass(abc.ABCMeta)
class MACContext(object):
    @abc.abstractmethod
    def update(self, data):
        """
        Processes the provided bytes.
        """

    @abc.abstractmethod
    def finalize(self):
        """
        Returns the message authentication code as bytes.
        """

    @abc.abstractmethod
    def copy(self):
        """
        Return a MACContext that is a copy of the current context.
        """

    @abc.abstractmethod
    def verify(self, signature):
        """
        Checks if the generated message authentication code matches the
        signature.
        """

Directory Contents

Dirs: 6 × Files: 9

Name Size Perms Modified Actions
- drwxr-xr-x 2025-08-28 15:33:17
Edit Download
ciphers DIR
- drwxr-xr-x 2025-08-28 15:33:17
Edit Download
kdf DIR
- drwxr-xr-x 2025-08-28 15:33:17
Edit Download
- drwxr-xr-x 2025-08-28 15:33:17
Edit Download
twofactor DIR
- drwxr-xr-x 2025-08-28 15:33:17
Edit Download
- drwxr-xr-x 2025-08-28 15:33:17
Edit Download
2.13 KB lrw-r--r-- 2025-08-26 10:01:14
Edit Download
430 B lrw-r--r-- 2020-10-28 03:11:40
Edit Download
6.17 KB lrw-r--r-- 2020-10-28 03:11:40
Edit Download
2.30 KB lrw-r--r-- 2025-08-26 10:01:14
Edit Download
5.60 KB lrw-r--r-- 2020-10-28 03:11:40
Edit Download
884 B lrw-r--r-- 2025-08-26 10:01:14
Edit Download
5.61 KB lrw-r--r-- 2020-10-28 03:11:40
Edit Download
1.64 KB lrw-r--r-- 2020-10-28 03:11:40
Edit Download
246 B lrw-r--r-- 2020-10-28 03:11:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).