RFC 7518 - JSON Web Algorithms (JWA)
发布日期: 2015 年 5 月
状态: 标准跟踪协议 (Standards Track)
作者: M. Jones (Microsoft)
摘要 (Abstract)
本规范注册了与 JSON Web Signature (JWS)、JSON Web Encryption (JWE) 和 JSON Web Key (JWK) 规范一起使用的加密算法和标识符. 它为这些标识符定义了多个 IANA 注册表.
目录 (Contents)
- 1. Introduction (简介)
- 1.1 Notational Conventions
- 2. Terminology (术语)
- 3. Cryptographic Algorithms for Digital Signatures and MACs (数字签名和 MAC 的加密算法)
- 3.1 "alg" Header Parameter Values for JWS
- 3.2 HMAC with SHA-2 Functions
- 3.3 Digital Signature with RSASSA-PKCS1-v1_5
- 3.4 Digital Signature with ECDSA
- 3.5 Digital Signature with RSASSA-PSS
- 3.6 Using the Algorithm "none"
- 4. Cryptographic Algorithms for Key Management (密钥管理的加密算法)
- 4.1 "alg" Header Parameter Values for JWE
- 4.2 Key Encryption with RSAES-PKCS1-v1_5
- 4.3 Key Encryption with RSAES OAEP
- 4.4 Key Wrapping with AES Key Wrap
- 4.5 Direct Encryption with a Shared Symmetric Key
- 4.6 Key Agreement with ECDH-ES
- 4.7 Key Encryption with AES GCM
- 4.8 Key Encryption with PBES2
- 5. Cryptographic Algorithms for Content Encryption (内容加密的加密算法)
- 5.1 "enc" Header Parameter Values for JWE
- 5.2 AES_CBC_HMAC_SHA2 Algorithms
- 5.3 Content Encryption with AES GCM
- 6. Cryptographic Algorithms for Keys (密钥的加密算法)
- 6.1 "kty" Parameter Values
- 6.2 Parameters for Elliptic Curve Keys
- 6.3 Parameters for RSA Keys
- 6.4 Parameters for Symmetric Keys
- 7. IANA Considerations (IANA 注意事项)
- 8. Security Considerations (安全考虑)
- 9. References (参考文献)
附录 (Appendices)
- Appendix A. Algorithm Identifier Cross-Reference
- Appendix B. Test Cases for AES_CBC_HMAC_SHA2
- Appendix C. Example ECDH-ES Key Agreement
相关资源
- 官方原文: RFC 7518
- 官方页面: RFC 7518 DataTracker
- 勘误表: RFC Editor Errata
JOSE 系列 RFC
- RFC 7515 - JSON Web Signature (JWS)
- RFC 7516 - JSON Web Encryption (JWE)
- RFC 7517 - JSON Web Key (JWK)
- RFC 7518 - JSON Web Algorithms (JWA) ← 本文档
- RFC 7519 - JSON Web Token (JWT)
核心算法概览
数字签名和 MAC 算法
- HS256, HS384, HS512 - HMAC with SHA-2
- RS256, RS384, RS512 - RSASSA-PKCS1-v1_5
- ES256, ES384, ES512 - ECDSA
- PS256, PS384, PS512 - RSASSA-PSS
- none - 无完整性保护 (不推荐)
密钥管理算法
- RSA1_5, RSA-OAEP, RSA-OAEP-256 - RSA 密钥加密
- A128KW, A192KW, A256KW - AES 密钥包装
- dir - 直接使用共享对称密钥
- ECDH-ES, ECDH-ES+A128KW, ECDH-ES+A192KW, ECDH-ES+A256KW - ECDH 密钥协商
- A128GCMKW, A192GCMKW, A256GCMKW - AES GCM 密钥加密
- PBES2-HS256+A128KW, PBES2-HS384+A192KW, PBES2-HS512+A256KW - 基于密码的密钥加密
内容加密算法
- A128CBC-HS256, A192CBC-HS384, A256CBC-HS512 - AES CBC with HMAC SHA-2
- A128GCM, A192GCM, A256GCM - AES GCM