hwsecurity-openpgp / de.cotech.hw.openpgp

Package de.cotech.hw.openpgp

Types

Name Summary
CardCapabilities open class CardCapabilities
OpenPgpAid abstract class OpenPgpAid
OpenPgpCapabilities abstract class OpenPgpCapabilities
OpenPgpCardUtils open class OpenPgpCardUtils
OpenPgpPairedDecryptor

open class OpenPgpPairedDecryptor

This use case class performs a “decrypt” operation on encrypted data, parametrized by a OpenPgpSecurityKey, PinProvider, and PairedSecurityKey.

PairedSecurityKey pairedSecurityKey = pairedSecurityTokenStorage.getPairedSecurityKey(keyInteractor.getSecurityKeyAid());
  PairedDecryptor decryptor = PairedDecryptor(keyInteractor, pairedPinProvider, pairedSecurityToken);
  byte[] encryptedSessionSecret = encryptedSessionStorage.getEncryptedSessionSecret(pairedSecurityToken.getSecurityKeyAid());
 
  ByteSecret sessionSecret = decryptor.decryptSessionSecret(encryptedSessionSecret);

This sessionSecret can be used for symmetric encryption operations, e.g. to encrypt a database.

OpenPgpSecurityKey open class OpenPgpSecurityKey : SecurityKey
OpenPgpSecurityKeyAuthenticator open class OpenPgpSecurityKeyAuthenticator : SecurityKeyAuthenticator
OpenPgpSecurityKeyConnectionMode open class OpenPgpSecurityKeyConnectionMode : SecurityKeyConnectionMode
OpenPgpSecurityKeyConnectionModeConfig

abstract class OpenPgpSecurityKeyConnectionModeConfig : Parcelable

This class holds configuration options for OpenPgpSecurityKeyConnectionMode.

OpenPgpSshAuthenticator open class OpenPgpSshAuthenticator : SecurityKeySshAuthenticator