JcaPlatform

Android-aware JCA key generation and digest providers for OpenPGP.

Android blocks BC JCA for some algorithms; this object picks a working provider per algorithm.

Properties

Link copied to clipboard
val digestCalculators: BcPGPDigestCalculatorProvider

BC lightweight digest calculator provider for OpenPGP packet checksums.

Functions

Link copied to clipboard
fun dsaKeyPair(bits: Int, date: Date): JcaPGPKeyPair

DSA primary key pair for legacy DSA/ElGamal layouts.

Link copied to clipboard
fun ecKeyPair(curve: EccCurve, pgpAlgorithm: Int, date: Date): JcaPGPKeyPair

NIST elliptic-curve key pair for ECDSA or ECDH OpenPGP packets.

Link copied to clipboard
fun elGamalKeyPair(bits: Int, date: Date): JcaPGPKeyPair

ElGamal encryption subkey pair for legacy DSA/ElGamal layouts.

Link copied to clipboard

Returns a KeyPairGenerator for algorithm, preferring platform providers.

Link copied to clipboard
fun rsaEncryptSubPair(bits: Int, date: Date): JcaPGPKeyPair

RSA encryption subkey pair (RSA_ENCRYPT packet).

Link copied to clipboard
fun rsaKeyPair(bits: Int, date: Date): JcaPGPKeyPair

Generates an RSA key pair tagged for signing (alias for rsaSignMasterPair).

Link copied to clipboard
fun rsaSignMasterPair(bits: Int, date: Date): JcaPGPKeyPair

RSA signing master key pair (RSA_SIGN packet).