Module: PGP

Defined in:
lib/pgp.rb,
lib/pgp-rb/version.rb

Defined Under Namespace

Classes: PublicKey

Constant Summary collapse

KEY_ALGORITHM_RSA =
1
KEY_ALGORITHM_RSA_ENCRYPT =
2
KEY_ALGORITHM_RSA_SIGN =
3
KEY_ALGORITHM_ELGAMAL_SIGN =
16
KEY_ALGORITHM_DSA =
17
KEY_ALGORITHM_ECDH =
18
KEY_ALGORITHM_ECDSA =
19
KEY_ALGORITHM_ELGAMAL =
20
KEY_ALGORITHM_DIFFIE_HELLMAN =
21
KEY_ALGORITHM_EDDSA =
22
KEY_ALGORITHM_NAMES =
{
  KEY_ALGORITHM_RSA => 'RSA (Encrypt and Sign)',
  KEY_ALGORITHM_RSA_ENCRYPT => 'RSA (Encrypt-Only)',
  KEY_ALGORITHM_RSA_SIGN => 'RSA (Sign-Only)',
  KEY_ALGORITHM_ELGAMAL_SIGN => 'Elgamal (Sign-Only)',
  KEY_ALGORITHM_DSA => 'DSA (Digital Signature Algorithm)',
  KEY_ALGORITHM_ECDH => 'Elliptic Curve: RFC-6637',
  KEY_ALGORITHM_ECDSA => 'ECDSA: RFC-6637',
  KEY_ALGORITHM_ELGAMAL => 'Elgamal (Encrypt and Sign)',
  KEY_ALGORITHM_DIFFIE_HELLMAN => 'Diffie-Hellman (X9.42, as defined for IETF-S/MIME)',
  KEY_ALGORITHM_EDDSA => 'EdDSA'
}.freeze
ENCRYPTION_ALGORITHM_IDEA =
1
ENCRYPTION_ALGORITHM_TRIPLE_DES =
2
ENCRYPTION_ALGORITHM_CAST5 =
3
ENCRYPTION_ALGORITHM_BLOWFISH =
4
ENCRYPTION_ALGORITHM_AES_128 =
7
ENCRYPTION_ALGORITHM_AES_192 =
8
ENCRYPTION_ALGORITHM_AES_256 =
9
ENCRYPTION_ALGORITHM_TWOFISH =
10
ENCRYPTION_ALGORITHM_CAMELLIA_128 =
11
ENCRYPTION_ALGORITHM_CAMELLIA_192 =
12
ENCRYPTION_ALGORITHM_CAMELLIA_256 =
13
VERSION =
'0.1.2'