メインコンテンツまでスキップ

付録 E. RFC 3230 からの移行

HTTP digests are computed by applying a hashing algorithm to input data. [RFC3230] defined the input data as an "instance", a term it also defined. The concept of an instance has since been superseded by the HTTP semantic term "representation". It is understood that some implementations of [RFC3230] mistook "instance" to mean HTTP content. Using content for the Digest field is an error that leads to interoperability problems between peers that implement [RFC3230].

HTTP ダイジェストは、入力データにハッシュアルゴリズムを適用することによって計算されます。[RFC3230] は、入力データを「インスタンス」として定義しました。これは、それ自体が定義した用語です。インスタンスの概念は、その後、HTTP セマンティック用語「表現」に取って代わられました。[RFC3230] の一部の実装は、「インスタンス」を HTTP コンテンツを意味すると誤解していたことが理解されています。Digest フィールドにコンテンツを使用すると、[RFC3230] を実装するピア間で相互運用性の問題が発生するエラーになります。

[RFC3230] was only ever intended to use what HTTP now defines as selected representation data. The semantic concept of digest and representation are explained alongside the definition of the Repr-Digest field (Section 3).

[RFC3230] は、HTTP が現在選択された表現データとして定義しているものを使用することのみを意図していました。ダイジェストと表現のセマンティックな概念は、Repr-Digest フィールドの定義(セクション 3)とともに説明されています。

While the syntax of Digest and Repr-Digest are different, the considerations and examples this document gives for Repr-Digest apply equally to Digest because they operate on the same input data; see Sections 3.1, 6 and 6.3.

Digest と Repr-Digest の構文は異なりますが、このドキュメントが Repr-Digest に対して提供する考慮事項と例は、同じ入力データで動作するため、Digest にも同様に適用されます。セクション 3.16、および 6.3 を参照してください。

[RFC3230] could never communicate the digest of HTTP message content in the Digest field; Content-Digest now provides that capability.

[RFC3230] は、Digest フィールドで HTTP メッセージコンテンツのダイジェストを通信することはできませんでした。Content-Digest は現在、その機能を提供しています。

[RFC3230] allowed algorithms to define their output encoding format for use with the Digest field. This resulted in a mix of formats such as base64, hex, or decimal. By virtue of using Structured Fields, Content-Digest, and Repr-Digest use only a single encoding format. Further explanation and examples are provided in Appendix D.

[RFC3230] では、アルゴリズムが Digest フィールドで使用する出力エンコーディング形式を定義できました。これにより、base64、hex、10 進数などの形式が混在することになりました。構造化フィールドを使用することにより、Content-Digest と Repr-Digest は単一のエンコーディング形式のみを使用します。詳細な説明と例は、付録 D に記載されています。