<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p>MIME を使って暗号化メッセージを送るための形式です。
RFC 1847 <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="urn:ietf:rfc:1847">urn:ietf:rfc:1847</anchor-external> で定義されてます。
なお、 RFC 1847 では <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/signed媒体型</anchor>も定義されてます。
暗号化までしなくても、署名だけで十分な場合は、そっちを使います。</p><section><h1>応用</h1><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MOSS</anchor> (RFC 1848)</li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PGP/MIME</anchor></li></ul></section><section><h1>媒体型パラメーター</h1><table><tbody><tr><td>boundary</td><td>mime.boundary</td><td>必須</td><td>多部分境界 [MIME] (See <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/*媒体型</anchor>)</td></tr><tr><td>protocol</td><td>mime.type &quot;/&quot; mime.subtype</td><td>必須</td><td>暗号化媒体型 [RFC1847]</td></tr></tbody></table></section><section><h1><code class="MIME" xml:lang="en">protocol</code></h1><figure class="short list"><ul><li><code class="MIME" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">application/HTTP-Kerberos-session-encrypted</anchor></code></li></ul></figure></section><section><h1>多部分本文</h1><p>最初の部分は、制御情報を入れます。ここの媒体型が、
protocol パラメーターと一致しなければなりません。</p><p>2番目の部分は、暗号化された実際のデータで、必ず
application/octet-stream でなければなりません。</p></section><section><h1>作成 (暗号化)</h1><p>1. 暗号化する MIME 本文・頭を用意する。本文は正規形でね。</p><p>2. MIME 本文・頭を暗号化処理に渡す。</p><p>3. 暗号化処理は制御情報と暗号化データを返す。</p><p>3.5. 戻って来たデータを元に、 multipart/encrypted 本文を構成する。</p></section><section><h1>復元 (解読)</h1><p>1. 最初の部分の制御情報と2番目の部分の暗号化データを用意する。</p><p>2. 解読処理に2つの部分を渡す。</p><p>2.5. 解読処理は解読結果を返す。</p><p>3. 処理を続行。</p></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en">2.2.9.1.3.1.1 HTTP Headers</cite>
(<time>2015-05-20 00:10:54 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://msdn.microsoft.com/en-us/library/dd304495.aspx">https://msdn.microsoft.com/en-us/library/dd304495.aspx</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="en">RFC 7681 - Email Exchange of Secondary School Transcripts</cite>
(<time>2015-10-24 10:57:24 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://tools.ietf.org/html/rfc7681">https://tools.ietf.org/html/rfc7681</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite xml:lang="en">RFC 4450: Getting Rid of the Cruft: Report from an Experiment in Identifying and Reclassifying Obsolete Standards Documents</cite>, <time>2023-12-02T08:22:42.000Z</time>, <time>2023-12-02T08:29:49.032Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://www.rfc-editor.org/rfc/rfc4450.html#appendix-A">https://www.rfc-editor.org/rfc/rfc4450.html#appendix-A</anchor-external></p></section></body></html>