SecureBlackbox 2020 macOS Edition

Questions / Feedback?

SSHKey Type

SSHKey is used to store information about single compound public-key algorithm (such as RSA or DSA) key.

Remarks

SSH keys are used to secure the SSH protocol flow. They support different algorithms and key lengths, a very typical example being RSA-2048 bits.

Fields

algorithm
String

Specifies the key algorithm.

bits
Int32

The number of bits in the key: the more the better, 2048 or 4096 are typical values.

comment
String

The comment for the public key.

curve
String

Specifies the elliptical curve when EC cryptography is used.

dssg
Data

The G (Generator) parameter of the DSS signature key. The string should contain the binary data of G.

dssp
Data

The P (Prime) parameter of the DSS signature key. The string should contain the binary data of P.

dssq
Data

The Q (Prime Factor) parameter of the DSS signature key. The string should contain the binary data of Q.

dssx
Data

The X (Private key) parameter of the DSS signature key. The string should contain the binary data of X.

This parameter may be empty if there's no need to sign data with this key (e.g. if the key is a server public key needed only to authenticate the server).

dssy
Data

The Y (Public key) parameter of the DSS signature key. The string should contain the binary data of Y.

eccd
Data

The value of the secret key (the order of the public key, D) if elliptic curve (EC) cryptography is used. The string should contain the binary data of D.

eccqx
Data

The value of the X coordinate of the public key if elliptic curve (EC) cryptography is used. The string should contain the binary data of X.

eccqy
Data

The value of the Y coordinate of the public key if elliptic curve (EC) cryptography is used. The string should contain the binary data of Y.

edPrivate
Data

The value of the private key if EdDSA (Edwards-curve Digital Signature Algorithm) algorithm is used.

edPublic
Data

The value of the public key if EdDSA (Edwards-curve Digital Signature Algorithm) algorithm is used.

fingerprintMD5
String

Contains the MD5 fingerprint (hash) of the key.

fingerprintSHA1
String

Contains the SHA-1 fingerprint (hash) of the key.

fingerprintSHA256
String

Contains the SHA-256 fingerprint (hash) of the key.

handle
Int64

Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.

When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object after such operation.

  pdfSigner.setSigningCertHandle(certMgr.getCertHandle());

isExtractable
Bool

Whether the key is extractable (e.g., from a security token), or not.

isPrivate
Bool

Whether this key is a private key or not.

isPublic
Bool

Whether this key is a public key or not.

kdfRounds
Int32

Returns the number of iterations of the Key Derivation Function (KDF) used to generate this key.

kdfSalt
Data

The salt value used by the Key Derivation Function (KDF) to generate this key.

keyFormat
SSHKeyFormats

Specifies the format in which the key is stored.

ckfOpenSSH0
ckfOpenSSH21
ckfIETF2
ckfPuTTY3
ckfX5094
ckfBinary5
ckfSSH16
ckfPGP7
ckfPKCS88

keyProtectionAlgorithm
String

Specifies the key protection algorithm.

rsaExponent
Data

Returns the e parameter (public exponent) of the RSA key.

rsaiqmp
Data

Returns the iqmp parameter of the RSA key.

rsaModulus
Data

Returns the m parameter (public modulus) of the RSA key.

rsap
Data

Returns the p parameter (first factor of the common modulus n) of the RSA key.

rsaPrivateExponent
Data

Returns the d parameter (private exponent) of the RSA key.

rsaq
Data

Returns the q parameter (second factor of the common modulus n) of the RSA key.

subject
String

Specifies the public key owner (subject). This property is used only for IETF-keys.

Constructors

public init()

Creates a new key.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 macOS Edition - Version 20.0 [Build 8166]