:py:mod:`pylibressl.mac.hmac` ============================= .. py:module:: pylibressl.mac.hmac Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: pylibressl.mac.hmac.HMAC Attributes ~~~~~~~~~~ .. autoapisummary:: pylibressl.mac.hmac.HMAC_Streebog512 pylibressl.mac.hmac.__doc__ .. py:class:: HMAC(private_key) Bases: :py:obj:`object` Generic HMAC class. .. py:method:: new(cls, hash_type, name='NewHMAC') :classmethod: Create new HMAC class with specified digest. .. py:method:: _sign(self, data) .. py:method:: sign(self, data) Sign a message using HMAC. .. py:method:: verify(self, data, auth_code) Verify message authencity using HMAC signature. .. py:method:: sign_size(self) Return size of an authentication code. .. py:data:: HMAC_Streebog512 .. py:data:: __doc__ :annotation: = HMAC_Streebog512