KeyOptions class
KeyOptions collects a number of parameters along with sensible defaults.
Constructors
-
KeyOptions(List<
int> bytes) -
factory
Properties
- algorithm → Algorithm
-
The public key algorithm to use - will always create a signing primary
key and encryption subkey.
no setter
- cipher → Cipher
-
Cipher is the cipher to be used.
If zero, AES-128 is used.
no setter
- compression → Compression
-
Compression is the compression algorithm to be
applied to the plaintext before encryption. If zero, no
compression is done.
no setter
- compressionLevel → int
-
CompressionLevel is the compression level to use. It must be set to
between -1 and 9, with -1 causing the compressor to use the
default compression level, 0 causing the compressor to use
no compression and 1 to 9 representing increasing (better,
slower) compression levels. If Level is less than -1 or
more then 9, a non-nil error will be returned during
encryption. See the constants above for convenient common
settings for Level.
no setter
- curve → Curve
-
Curve configures the desired packet.Curve if the Algorithm is PubKeyAlgoECDSA,
PubKeyAlgoEdDSA, or PubKeyAlgoECDH. If empty Curve25519 is used.
no setter
- hash → Hash
-
Hash is the default hash function to be used.
If zero, SHA-256 is used.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- rsaBits → int
-
RSABits is the number of bits in new RSA keys made with NewEntity.
If zero, then 2048 bit keys are created.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
reader
→ const Reader<
KeyOptions>