update_alg

Function

This command is used to configure the encryption algorithm used for communication between service processes of the edge management system.

Syntax

update_alg.sh -s [sdp_alg_id] -h [hmac_alg_id]

Usage Guidelines

Encryption algorithm configuration means to configure the data encryption algorithm and integrity protection algorithm. If you do not specify the two configuration items, the default configuration is used. You can run this command to modify the default configuration as required.

Example

  1. Run the following command to access the directory where the script is stored:
    cd /usr/local/mindx/MindXOM/tools
  2. Run the following command to modify the encryption algorithm configuration item:
    ./update_alg.sh -s 9 -h 2054

    Before running the script, ensure that the specified target file exists and is readable and writable.

    This command changes the value of sdp_alg_id to 9 and the value of hmac_alg_id to 2054 in a specified configuration file.

    Table 1 Parameter description

    Parameter

    Description

    -s

    Specifies the data encryption algorithm. The value can only be 8 or 9, corresponding to AES_GCM_128 or AES_GCM_256, respectively.

    -h

    Specifies the integrity protection algorithm. The value can only be 2053 or 2054, corresponding to SHA384 or SHA512, respectively.