Configure a Key AlgorithmNEW!

You can define the hash algorithm type for a specified key.

You can choose from one of the following algorithms: HMAC SHA-1, HMAC SHA-256, HMAC SHA-384, and HMAC SHA-512
  1. Enter global configuration mode.
    device# configure terminal
  2. Enter keychain configuration mode.
    device(config)# keychain keychain1
    This example enters configuration mode for key chain 1.
  3. Enter key configuration mode.
    device(config-keychain1)# key 10
    This example enters configuration mode for key 10 in key chain 1.
  4. Specify the algorithm.
    device(config-keychain1-key10)# key-algorithm HMAC-SHA-256
    This example configures SHA-256 for key 10 in key chain 1.

Example

This example summarizes the commands in this procedure.

device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)# key-algorithm HMAC-SHA-256