1 1.1 agc 2 1.1 agc 3 1.1 agc 4 1.1 agc 5 1.1 agc 6 1.1 agc 7 1.1 agc Network Working Group D. Shaw 8 1.1 agc Request for Comments: 5581 June 2009 9 1.1 agc Updates: 4880 10 1.1 agc Category: Informational 11 1.1 agc 12 1.1 agc 13 1.1 agc The Camellia Cipher in OpenPGP 14 1.1 agc 15 1.1 agc Status of This Memo 16 1.1 agc 17 1.1 agc This memo provides information for the Internet community. It does 18 1.1 agc not specify an Internet standard of any kind. Distribution of this 19 1.1 agc memo is unlimited. 20 1.1 agc 21 1.1 agc Copyright Notice 22 1.1 agc 23 1.1 agc Copyright (c) 2009 IETF Trust and the persons identified as the 24 1.1 agc document authors. All rights reserved. 25 1.1 agc 26 1.1 agc This document is subject to BCP 78 and the IETF Trust's Legal 27 1.1 agc Provisions Relating to IETF Documents in effect on the date of 28 1.1 agc publication of this document (http://trustee.ietf.org/license-info). 29 1.1 agc Please review these documents carefully, as they describe your rights 30 1.1 agc and restrictions with respect to this document. 31 1.1 agc 32 1.1 agc Abstract 33 1.1 agc 34 1.1 agc This document presents the necessary information to use the Camellia 35 1.1 agc symmetric block cipher in the OpenPGP protocol. 36 1.1 agc 37 1.1 agc Table of Contents 38 1.1 agc 39 1.1 agc 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2 40 1.1 agc 2. Requirements Notation . . . . . . . . . . . . . . . . . . . . . 2 41 1.1 agc 3. Camellia . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 42 1.1 agc 4. Security Considerations . . . . . . . . . . . . . . . . . . . . 2 43 1.1 agc 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 3 44 1.1 agc 6. Normative References . . . . . . . . . . . . . . . . . . . . . 3 45 1.1 agc 46 1.1 agc 47 1.1 agc 48 1.1 agc 49 1.1 agc 50 1.1 agc 51 1.1 agc 52 1.1 agc 53 1.1 agc 54 1.1 agc 55 1.1 agc 56 1.1 agc 57 1.1 agc 58 1.1 agc Shaw Informational [Page 1] 59 1.1 agc 61 1.1 agc RFC 5581 The Camellia Cipher in OpenPGP June 2009 62 1.1 agc 63 1.1 agc 64 1.1 agc 1. Introduction 65 1.1 agc 66 1.1 agc The OpenPGP protocol [RFC4880] can support many different symmetric 67 1.1 agc ciphers. This document presents the necessary information to use the 68 1.1 agc Camellia [RFC3713] symmetric cipher in the OpenPGP protocol. 69 1.1 agc 70 1.1 agc 2. Requirements Notation 71 1.1 agc 72 1.1 agc The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 73 1.1 agc "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 74 1.1 agc document are to be interpreted as described in [RFC2119]. 75 1.1 agc 76 1.1 agc 3. Camellia 77 1.1 agc 78 1.1 agc Camellia is specified in [RFC3713]. It is a 128-bit symmetric block 79 1.1 agc cipher (as are AES and Twofish in OpenPGP) that supports 128-bit, 80 1.1 agc 192-bit, and 256-bit keys. This document defines the use of Camellia 81 1.1 agc in OpenPGP. 82 1.1 agc 83 1.1 agc +---------------------+----------------------------------------+ 84 1.1 agc | Camellia Key Length | OpenPGP Symmetric-Key Algorithm Number | 85 1.1 agc +---------------------+----------------------------------------+ 86 1.1 agc | 128 | 11 | 87 1.1 agc | 192 | 12 | 88 1.1 agc | 256 | 13 | 89 1.1 agc +---------------------+----------------------------------------+ 90 1.1 agc 91 1.1 agc OpenPGP applications MAY implement Camellia. If implemented, 92 1.1 agc Camellia may be used in any place in OpenPGP where a symmetric cipher 93 1.1 agc is usable, and it is subject to the same usage requirements (such as 94 1.1 agc its presence in the Preferred Symmetric Algorithms signature 95 1.1 agc subpacket) as the other symmetric ciphers in OpenPGP. 96 1.1 agc 97 1.1 agc While the OpenPGP algorithm preferences system prevents 98 1.1 agc interoperability problems with public key encrypted messages, if 99 1.1 agc Camellia (or any other optional cipher) is used for encrypting 100 1.1 agc private keys, there could be interoperability problems when migrating 101 1.1 agc a private key from one system to another. A similar issue can arise 102 1.1 agc when using an optional cipher for symmetrically encrypted messages, 103 1.1 agc as this OpenPGP message type does not use the algorithm preferences 104 1.1 agc system. Those using optional ciphers in this manner should take care 105 1.1 agc they are using a cipher that their intended recipient can decrypt. 106 1.1 agc 107 1.1 agc 4. Security Considerations 108 1.1 agc 109 1.1 agc At publication time, there are no known weak keys for Camellia, and 110 1.1 agc the Camellia algorithm is believed to be strong. However, as with 111 1.1 agc any technology involving cryptography, implementers should check the 112 1.1 agc 113 1.1 agc 114 1.1 agc 115 1.1 agc Shaw Informational [Page 2] 116 1.1 agc 118 1.1 agc RFC 5581 The Camellia Cipher in OpenPGP June 2009 119 1.1 agc 120 1.1 agc 121 1.1 agc current literature, as well as the Camellia home page at 122 1.1 agc http://info.isl.ntt.co.jp/camellia/ to determine if Camellia has been 123 1.1 agc found to be vulnerable to attack. 124 1.1 agc 125 1.1 agc 5. IANA Considerations 126 1.1 agc 127 1.1 agc IANA assigned three algorithm numbers from the registry of OpenPGP 128 1.1 agc Symmetric-Key Algorithms that was created by [RFC4880]. 129 1.1 agc 130 1.1 agc 6. Normative References 131 1.1 agc 132 1.1 agc [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 133 1.1 agc Requirement Levels", BCP 14, RFC 2119, March 1997. 134 1.1 agc 135 1.1 agc [RFC3713] Matsui, M., Nakajima, J., and S. Moriai, "A Description of 136 1.1 agc the Camellia Encryption Algorithm", RFC 3713, April 2004. 137 1.1 agc 138 1.1 agc [RFC4880] Callas, J., Donnerhacke, L., Finney, H., Shaw, D., and R. 139 1.1 agc Thayer, "OpenPGP Message Format", RFC 4880, November 2007. 140 1.1 agc 141 1.1 agc Author's Address 142 1.1 agc 143 1.1 agc David Shaw 144 1.1 agc 145 1.1 agc EMail: dshaw (a] jabberwocky.com 146 1.1 agc 147 1.1 agc 148 1.1 agc 149 1.1 agc 150 1.1 agc 151 1.1 agc 152 1.1 agc 153 1.1 agc 154 1.1 agc 155 1.1 agc 156 1.1 agc 157 1.1 agc 158 1.1 agc 159 1.1 agc 160 1.1 agc 161 1.1 agc 162 1.1 agc 163 1.1 agc 164 1.1 agc 165 1.1 agc 166 1.1 agc 167 1.1 agc 168 1.1 agc 169 1.1 agc 170 1.1 agc 171 1.1 agc 172 Shaw Informational [Page 3] 173 175