PgpAlgorithmPolicy

Allowed algorithms, defaults, and key-ring validation for OpenPGP operations.

Properties

Link copied to clipboard

All BC-supported OpenPGP public-key algorithms (excl. experimental slots).

Link copied to clipboard

RSA key sizes permitted for new key generation.

Link copied to clipboard

Primary key types that can be generated on Android.

Link copied to clipboard

Subkey types generatable on Android (excludes ElGamal encrypt subkeys).

Link copied to clipboard
const val defaultDsaBits: Int = 3072

Default DSA primary key size for legacy DSA/ElGamal rings.

Link copied to clipboard
const val defaultElGamalBits: Int = 3072

Default ElGamal subkey size for legacy DSA/ElGamal rings.

Link copied to clipboard

Default hash algorithm for signatures and S2K.

Link copied to clipboard

Default symmetric cipher for message encryption (AES-256).

Link copied to clipboard
const val minRsaBits: Int = 2048

Minimum RSA modulus size accepted for generation and validation.

Functions

Link copied to clipboard
fun validateKeyRing(info: KeyRingInfo, allowRevoked: Boolean = false)

Validates info against policy (algorithms, revocation).