You can define the hash algorithm type for a specified key.
device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)# key-algorithm HMAC-SHA-256
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