Class PgpAlgorithm

java.lang.Object
cloud.opencode.base.crypto.pgp.PgpAlgorithm

public final class PgpAlgorithm extends Object
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:
  • Field Details

    • DEFAULT_RSA_KEY_SIZE

      public static final int DEFAULT_RSA_KEY_SIZE
      Default RSA key size in bits. 默认 RSA 密钥大小(位)。
      See Also:
    • MIN_RSA_KEY_SIZE

      public static final int MIN_RSA_KEY_SIZE
      Minimum RSA key size in bits. 最小 RSA 密钥大小(位)。
      See Also:
    • DEFAULT_SYMMETRIC

      public static final PgpAlgorithm.Symmetric DEFAULT_SYMMETRIC
      Default symmetric algorithm. 默认对称算法。
    • DEFAULT_HASH

      public static final PgpAlgorithm.Hash DEFAULT_HASH
      Default hash algorithm. 默认哈希算法。