Defines the hash algorithm type for a specified key.
The default algorithm is HMAC SHA-256.
Key configuration mode
Use the no form of the command to remove the hash algorithm configuration and revert to the default value.
The following example configures SHA-256 for key 10 in key chain 1.
device# configure terminal device(config)# keychain keychain1 device(config-keychain1)# key 10 device(config-keychain1-key10)# key-algorithm HMAC-SHA-256