pylibressl.mac.hmac

Module Contents

Classes

HMAC

Generic HMAC class.

Attributes

HMAC_Streebog512

__doc__

class pylibressl.mac.hmac.HMAC(private_key)

Bases: object

Generic HMAC class.

classmethod new(cls, hash_type, name='NewHMAC')

Create new HMAC class with specified digest.

_sign(self, data)
sign(self, data)

Sign a message using HMAC.

verify(self, data, auth_code)

Verify message authencity using HMAC signature.

sign_size(self)

Return size of an authentication code.

pylibressl.mac.hmac.HMAC_Streebog512
pylibressl.mac.hmac.__doc__ = HMAC_Streebog512