Block cipher family

RC2, RC5 and RC6

Ron Rivest's family of block ciphers, from the 1987 RC2 to the AES finalist RC6

legacy 3 variants RFC 2268 (RC2); RFC 2040 (RC5); AES finalist (RC6)

Overview

RC2, RC5 and RC6 are block ciphers designed by Ron Rivest for RSA Security. RC2 dates from 1987 and was used in early export-grade software; RC5 (1994) introduced data-dependent rotations; RC6 (1998) was one of the five AES finalists.

RC2 is a 64-bit block cipher built from 16 mixing and 2 mashing rounds on 16-bit words, with a variable-length key and an 'effective key bits' parameter (RFC 2268). RC5 is a Feistel-like ARX cipher parameterised by word size, rounds and key length, whose central operation is a rotation by an amount taken from the data. RC6 extends RC5 to four 32-bit registers with a 128-bit block and adds integer multiplication to speed diffusion.

NextSSL includes RC2, RC5 and RC6. RC2 appears in old S/MIME and PKCS #12 files, which is the main reason to support it. RC5 and RC6 were patented by RSA Security, which limited their adoption. The three ciphers share a name but not a structure, and their test vectors are not related. RC6 remains an interesting reference design for data-dependent rotations combined with multiplication.

History

1987–2001
  1. RC2 designed by Ron Rivest

  2. RC5 published

  3. Specified in RFC 2040

  4. NIST calls for a successor to DES

    AES selection process
  5. RC2 published as RFC 2268; RC6 submitted to the AES process

  6. Five finalists: MARS, RC6, Rijndael, Serpent and Twofish

    AES selection process
  7. Rijndael selected

    AES selection process
  8. AES published as FIPS 197

    AES selection process

Security notes

RC2 is broken: it has related-key attacks and was routinely used with 40-bit export keys. RC5 with 12 rounds on 64-bit blocks has been attacked with differential cryptanalysis using large numbers of chosen plaintexts; more rounds are needed. RC6 has no known practical attack on its full 20 rounds but sees little use.

Typical uses

Reading legacy PKCS #12 and S/MIME files (RC2)Research on data-dependent rotations

Variants in NextSSL

3
AlgorithmTierSizes (bytes)StandardsAPI
RC5
rc5
legacy key 16 · block 8 RFC 2040, RC5 (Rivest 1994) root
RC2
rc2
broken key 1–128 · block 8 RFC 2268 root
RC6
rc6
research key 8–128 · block 16 — root

Frequently asked questions

Which RC2, RC5 and RC6 variants does NextSSL include?

NextSSL registers 3 RC2, RC5 and RC6 variants: rc5, rc2, rc6.