CryptoAuthLib v3.7.8
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
cryptoauthlib.atjwt.HwHmacAlgorithm Class Reference
Inheritance diagram for cryptoauthlib.atjwt.HwHmacAlgorithm:

Public Member Functions

def __init__ (self, hash_alg, slot, iface_cfg)
 
def sign (self, msg, _)
 
def verify (self, msg, key, sig)
 

Protected Attributes

 _cfg
 
 _slot
 

Detailed Description

Extended Algorithm with hardware based HMAC support

Member Function Documentation

◆ sign()

def cryptoauthlib.atjwt.HwHmacAlgorithm.sign (   self,
  msg,
  _ 
)
Return a signature of the JWT with hardware SHA256 HMAC and stored key

◆ verify()

def cryptoauthlib.atjwt.HwHmacAlgorithm.verify (   self,
  msg,
  key,
  sig 
)
Verify a signature using the software HMAC module