Block cipher family

CAST-128 and CAST-256

Carlisle Adams and Stafford Tavares's Feistel ciphers, once default in PGP

legacy 2 variants RFC 2144; RFC 2612

Overview

CAST-128 (also called CAST5) and CAST-256 (CAST6) are block ciphers designed using the CAST methodology of Carlisle Adams and Stafford Tavares. CAST5 was the default symmetric cipher in some versions of PGP and GnuPG.

CAST-128 is a 12- or 16-round Feistel network on a 64-bit block with keys from 40 to 128 bits. Its round functions mix modular addition, subtraction and XOR with key-dependent rotations and four large 8x32-bit S-boxes derived from bent functions. CAST-256 extends the design to a 128-bit block with keys up to 256 bits using a generalised Feistel structure of quad-rounds, and was an AES first-round candidate.

CAST-128 is specified in RFC 2144 and CAST-256 in RFC 2612. NextSSL includes both. CAST5 was used in OpenPGP, early SSH and some VPN products, and is still supported for decrypting old messages. CAST-256 was not selected as an AES finalist. Both were offered royalty-free by Entrust. It remains interoperable.

History

1996–1999
  1. CAST-128 published by Carlisle Adams and Stafford Tavares

  2. Specified in RFC 2144

  3. CAST-256 specified in RFC 2612

Security notes

No practical attacks on full CAST-128 or CAST-256 are known, but CAST-128's 64-bit block is vulnerable to birthday-bound attacks with large data volumes. Both are legacy choices.

Typical uses

Decrypting legacy OpenPGP dataInteroperability with older systems

Variants in NextSSL

2
AlgorithmTierSizes (bytes)StandardsAPI
CAST5
cast5
legacy key 5–16 · block 8 RFC 2144, CAST-128 root
CAST6
cast6
legacy key 16–32 · block 16 RFC 2612, CAST-256 root

Frequently asked questions

Which CAST-128 and CAST-256 variants does NextSSL include?

NextSSL registers 2 CAST-128 and CAST-256 variants: cast5, cast6.