AlgorithmLabels

Maps OpenPGP algorithm tags and key-type enums to display strings.

Functions

Link copied to clipboard
fun forAlgorithm(algorithm: Int, bits: Int? = null): String

Returns a short label for an OpenPGP public-key algorithm tag.

Link copied to clipboard
fun forKeyType(type: KeyAlgorithmType, rsaBits: Int = 3072): String

Describes a primary key algorithm preset including its default subkey layout.

Link copied to clipboard

Label for a subkey type when adding subkeys to an existing ring.

Link copied to clipboard
fun uiLabel(type: KeyAlgorithmType, rsaBits: Int = 3072): String

User-facing label for key-generation UI option lists.