KeyPairFactory
object KeyPairFactory
Factory that produces algorithm-specific signing, encryption, and authentication key pairs.
Types
Functions
Link copied to clipboard
fun authenticationSubkeyPair(type: KeyAlgorithmType, rsaBits: Int, date: Date): KeyPairFactory.Generated
Creates an authentication subkey (sign-capable material with authentication flag only).
Link copied to clipboard
fun encryptionSubkeyPair(type: KeyAlgorithmType, rsaBits: Int, date: Date): KeyPairFactory.Generated
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
Returns whether the given OpenPGP algorithm tag requires BC lightweight operators.