Class: Capsium::Package::OpenPgpCipher

Inherits:
Cipher
  • Object
show all
Defined in:
lib/capsium/package/open_pgp_cipher.rb,
sig/capsium/package/open_pgp_cipher.rbs

Overview

Encrypts and decrypts whole Capsium packages with OpenPGP key management (ARCHITECTURE.md section 6b) through librnp: the DEK travels as an armored OpenPGP message in the signature.json envelope (keyManagement "OpenPGP"); the AES-256-GCM content encryption and the encrypted .cap layout are the Cipher's.

Constant Summary collapse

KEY_MANAGEMENT =

Returns:

  • (String)
"OpenPGP"
CIPHER_NAME =

The OpenPGP symmetric cipher protecting the DEK message.

Returns:

  • (String)
"AES256"

Constants inherited from Cipher

Cipher::ALGORITHM, Cipher::ENCRYPTED_FILE, Cipher::ENVELOPE_FILE, Cipher::RSA_OPTIONS

Method Summary

Methods inherited from Cipher

#decrypt, decrypt_to_directory, #encrypt, encrypted?, for_encrypted, key_management