authentication-algorithm

Specifies the cryptographic algorithm to be used for the key in the keychain.
Syntax
authentication-algorithm { hmac-sha-1 | hmac-sha-256 | md5 | sha-1 | sha-256 }
no authentication-algorithm { hmac-sha-1 | hmac-sha-256 | md5 | sha-1 | sha-256 }
Command Default

An authentication algorithm is not specified by default.

Parameters
hmac-sha-1
Sets the authentication algorithm to HMAC-SHA-1.
hmac-sha-256
Sets the authentication algorithm to HMAC-SHA-256.
md5
Sets the authentication algorithm to MD5.
sha-1
Sets the authentication algorithm to SHA-1.
sha-256
Sets the authentication algorithm to SHA-256.
Modes

Key ID configuration mode

Usage Guidelines

The application or protocol chooses the cryptographic algorithm that matches its criteria.

A key is considered valid only if the key has not expired, and the password and authentication algorithm have been specified.

The no form of the command removes the authentication algorithm from the key.

Examples

The following example specifies MD5 to be used as the authentication algorithm.

device# configure terminal
device(config)# keychain xprotocol
device(config-keychain-xprotocol)# key-id 10
device(config-keychain-xprotocol-key-10)# authentication-algorithm md5
History
Release version Command history
08.0.70 This command was introduced.