key-algorithm

Defines the hash algorithm type for a specified key.

Syntax

key-algorithm { HMAC-SHA-1 | HMAC-SHA-256 | HMAC-SHA-384 | HMAC-SHA-512 }
no key-algorithm

Command Default

The default algorithm is HMAC SHA-256.

Parameters

HMAC-SHA-1 | HMAC-SHA-256 | HMAC-SHA-384 | HMAC-SHA-512
Specifies the hash algorithm for the selected key.

Modes

Key configuration mode

Usage Guidelines

Use the no form of the command to remove the hash algorithm configuration and revert to the default value.

Examples

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