hpimdm/InterfaceHPIM.py
def add_security_key(self, security_identifier, security_function, security_key):
        """
        Set Security information for the HMAC of control messages. Set the Security Identifier used to identify
        the Hash algorithm of received control messages, the corresponding hash algorithm and the SecurityKey used to
        calculate the HMAC
        """
        self.security_id = security_identifier
        self.security_len = len(hashlib.new(security_function).digest())
        self.hash_function = getattr(hashlib, security_function)
        self.security_key = str.encode(security_key)

        Set Security information for the HMAC of control messages. Set the Security Identifier used to identify
        the Hash algorithm of received control messages, the corresponding hash algorithm and the SecurityKey used to
        calculate the HMAC
        
Set Security information for the HMAC of control messages. Set the Security Identifier used to identify
the Hash algorithm of received control messages, the corresponding hash algorithm and the SecurityKey used to
calculate the HMAC
Set Security information for the HMAC of control messages . Set the Security Identifier used to identify the Hash algorithm of received control messages the corresponding hash algorithm and the SecurityKey used to calculate the HMAC
def add_security_key(self, security_identifier, security_function, security_key):
        self.security_id = security_identifier
        self.security_len = len(hashlib.new(security_function).digest())
        self.hash_function = getattr(hashlib, security_function)
        self.security_key = str.encode(security_key)
def add_security_key ( self , security_identifier , security_function , security_key ) : self . security_id = security_identifier self . security_len = len ( hashlib . new ( security_function ) . digest ( ) ) self . hash_function = getattr ( hashlib , security_function ) self . security_key = str . encode ( security_key )
Set Security information for the HMAC of control messages.
Set Security information for the HMAC of control messages .
"""
        Set Security information for the HMAC of control messages. Set the Security Identifier used to identify
        the Hash algorithm of received control messages, the corresponding hash algorithm and the SecurityKey used to
        calculate the HMAC
        """
self
security_identifier
security_function
security_key