hpimdm/Main.py
def add_security_key(interface_name, security_identifier, hash_function, key, ipv4=False, ipv6=False):
    """
    Enable HMAC protection in interface_name with security_identifier, HMAC based on hash_function and
    HMAC protection key
    """
    if ipv4 and kernel is not None:
        kernel.add_interface_security(interface_name, security_identifier, hash_function, key)
    elif ipv6 and kernel_v6 is not None:
        kernel_v6.add_interface_security(interface_name, security_identifier, hash_function, key)

    Enable HMAC protection in interface_name with security_identifier, HMAC based on hash_function and
    HMAC protection key
    
Enable HMAC protection in interface_name with security_identifier, HMAC based on hash_function and
HMAC protection key
Enable HMAC protection in interface_name with security_identifier HMAC based on hash_function and HMAC protection key
def add_security_key(interface_name, security_identifier, hash_function, key, ipv4=False, ipv6=False):
    if ipv4 and kernel is not None:
        kernel.add_interface_security(interface_name, security_identifier, hash_function, key)
    elif ipv6 and kernel_v6 is not None:
        kernel_v6.add_interface_security(interface_name, security_identifier, hash_function, key)
def add_security_key ( interface_name , security_identifier , hash_function , key , ipv4 = False , ipv6 = False ) : if ipv4 and kernel is not None : kernel . add_interface_security ( interface_name , security_identifier , hash_function , key ) elif ipv6 and kernel_v6 is not None : kernel_v6 . add_interface_security ( interface_name , security_identifier , hash_function , key )
Enable HMAC protection in interface_name with security_identifier, HMAC based on hash_function and
HMAC protection key
Enable HMAC protection in interface_name with security_identifier HMAC based on hash_function and HMAC protection key
"""
    Enable HMAC protection in interface_name with security_identifier, HMAC based on hash_function and
    HMAC protection key
    """
interface_name
security_identifier
hash_function
key
ipv4
ipv6