Class PgpAlgorithm
java.lang.Object
cloud.opencode.base.crypto.pgp.PgpAlgorithm
PGP Algorithm Configuration - Defines algorithms used in PGP operations
PGP 算法配置 - 定义 PGP 操作中使用的算法
Features | 主要功能:
- PGP public key algorithm definitions - PGP 公钥算法定义
- PGP symmetric encryption algorithm definitions - PGP 对称加密算法定义
- PGP hash algorithm definitions - PGP 哈希算法定义
Usage Examples | 使用示例:
PgpAlgorithm.Symmetric sym = PgpAlgorithm.DEFAULT_SYMMETRIC;
PgpAlgorithm.Hash hash = PgpAlgorithm.DEFAULT_HASH;
Security | 安全性:
- Thread-safe: Yes - 线程安全: 是
- Null-safe: Partial - 空值安全: 部分
Performance | 性能特性:
- Time complexity: O(1) - 时间复杂度: O(1)
- Space complexity: O(1) - 空间复杂度: O(1)
- Since:
- JDK 25, opencode-base-crypto V1.2.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHash Algorithms for signatures and integrity 用于签名和完整性的哈希算法static enumPublic Key Algorithms 公钥算法static enumSymmetric Key Algorithms for encryption 用于加密的对称密钥算法 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PgpAlgorithm.HashDefault hash algorithm.static final intDefault RSA key size in bits.static final PgpAlgorithm.SymmetricDefault symmetric algorithm.static final intMinimum RSA key size in bits. -
Method Summary
-
Field Details
-
DEFAULT_RSA_KEY_SIZE
public static final int DEFAULT_RSA_KEY_SIZEDefault RSA key size in bits. 默认 RSA 密钥大小(位)。- See Also:
-
MIN_RSA_KEY_SIZE
public static final int MIN_RSA_KEY_SIZEMinimum RSA key size in bits. 最小 RSA 密钥大小(位)。- See Also:
-
DEFAULT_SYMMETRIC
Default symmetric algorithm. 默认对称算法。 -
DEFAULT_HASH
Default hash algorithm. 默认哈希算法。
-