KeyPairFactory

Factory that produces algorithm-specific signing, encryption, and authentication key pairs.

Types

Link copied to clipboard
data class Generated(val pair: PGPKeyPair, val useBcLightweight: Boolean)

A generated OpenPGP key pair plus a flag indicating which operator backend to use.

Functions

Link copied to clipboard

Creates an authentication subkey (sign-capable material with authentication flag only).

Link copied to clipboard

Creates the encryption subkey pair paired with the given primary algorithm type.

Link copied to clipboard

Creates the master signing (certify + sign) key pair for a new key ring.

Link copied to clipboard

Creates a key pair for an explicit SubkeyType when adding subkeys to an existing ring.

Link copied to clipboard
fun useBcLightweight(algorithm: Int): Boolean

Returns whether the given OpenPGP algorithm tag requires BC lightweight operators.