| 标准 | RFC 8017 / FIPS 186-5 |
|---|---|
| 数学基础 | 大整数分解与模幂运算 |
| 常见密钥长度 | 2048 / 3072 / 4096 位 |
| 用途 | 数字签名、密钥封装、证书签名 |
密钥生成与查看
密钥生成与查看
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out rsa.key
openssl rsa -in rsa.key -pubout -out rsa.pub
openssl rsa -in rsa.key -noout -text | Select-String 'Private-Key'RSA 加密有长度上限(2048 位密钥配 SHA-256 的 OAEP 约 190 字节),大文件必须采用「RSA 包装对称密钥」的混合加密。