MySQL 5.7 Reference Manual Including MySQL NDB Cluster 7.5 and NDB Cluster 7.6

6.4.4.6 Supported Keyring Key Types and Lengths

MySQL Keyring supports keys of different types (encryption algorithms) and lengths:

Table 6.23, “General Keyring Key Length Limits” shows the general key-length limits. (The lower limits for keyring_aws are imposed by the AWS KMS interface, not the keyring functions.) Table 6.24, “Keyring Plugin Key Types and Lengths” shows the key types each keyring plugin permits, as well as any plugin-specific key-length restrictions.

Table 6.23 General Keyring Key Length Limits

Key Operation Maximum Key Length
Generate key

2,048 bytes; 1,024 for keyring_aws

Store key

2,048 bytes

Fetch key

2,048 bytes


Table 6.24 Keyring Plugin Key Types and Lengths

Plugin Name Permitted Key Type Plugin-Specific Length Restrictions
keyring_aws

AES

16, 24, or 32 bytes

keyring_encrypted_file

AES

DSA

RSA

None

None

None

keyring_file

AES

DSA

RSA

None

None

None

keyring_okv

AES

16, 24, or 32 bytes