You can define the hash algorithm type
for a specified key.
About this task
You can choose from one of the following algorithms: HMAC SHA-1, HMAC SHA-256, HMAC
SHA-384, and HMAC SHA-512
Procedure
-
Enter global configuration
mode.
device# configure terminal
-
Enter keychain configuration
mode.
device(config)# keychain keychain1
This example enters
configuration mode for key chain 1.
-
Enter key configuration mode.
device(config-keychain1)# key 10
This example enters
configuration mode for key 10 in key chain 1.
-
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