Cipherpack v1.2.0-dirty
A Cryprographic Stream Processor
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
org.cipherpack.CryptoConfig Class Reference

CryptoConfig, contains crypto algorithms settings given at encryption wired via the Cipherpack Data Stream, hence received and used at decryption if matching keys are available. More...

Collaboration diagram for org.cipherpack.CryptoConfig:

Public Member Functions

 CryptoConfig ()
 
 CryptoConfig (final String pk_type_, final String pk_fingerprt_hash_algo_, final String pk_enc_padding_algo_, final String pk_enc_hash_algo_, final String pk_sign_algo_, final String sym_enc_algo_, final long sym_enc_nonce_bytes_)
 
final String toString ()
 
final boolean valid ()
 

Static Public Member Functions

static CryptoConfig getDefault ()
 Returns default CryptoConfig. More...
 

Public Attributes

final String pk_enc_hash_algo
 
final String pk_enc_padding_algo
 
final String pk_fingerprt_hash_algo
 
final String pk_sign_algo
 
final String pk_type
 
final String sym_enc_algo
 
final long sym_enc_nonce_bytes
 

Detailed Description

CryptoConfig, contains crypto algorithms settings given at encryption wired via the Cipherpack Data Stream, hence received and used at decryption if matching keys are available.

See also
Cipherpack Overview
Cipherpack Data Stream

Definition at line 33 of file CryptoConfig.java.

Constructor & Destructor Documentation

◆ CryptoConfig() [1/2]

org.cipherpack.CryptoConfig.CryptoConfig ( )

Definition at line 42 of file CryptoConfig.java.

Here is the caller graph for this function:

◆ CryptoConfig() [2/2]

org.cipherpack.CryptoConfig.CryptoConfig ( final String  pk_type_,
final String  pk_fingerprt_hash_algo_,
final String  pk_enc_padding_algo_,
final String  pk_enc_hash_algo_,
final String  pk_sign_algo_,
final String  sym_enc_algo_,
final long  sym_enc_nonce_bytes_ 
)

Definition at line 51 of file CryptoConfig.java.

Member Function Documentation

◆ valid()

final boolean org.cipherpack.CryptoConfig.valid ( )

Definition at line 67 of file CryptoConfig.java.

◆ toString()

final String org.cipherpack.CryptoConfig.toString ( )

Definition at line 79 of file CryptoConfig.java.

Here is the caller graph for this function:

◆ getDefault()

static CryptoConfig org.cipherpack.CryptoConfig.getDefault ( )
static

Returns default CryptoConfig.

  • Public-Key type is RSA.
  • Public key fingerprint hash algorithm is SHA-256.
  • Public-Key padding algorithm is OAEP.
  • Public-Key hash algorithm is SHA-256.
  • Public-Key hash algorithm is EMSA1(SHA-256).
  • Symmetric Authenticated Encryption with Additional Data (AEAD) encryption+MAC cipher algo is ChaCha20Poly1305.
  • Symmetric AEAD ChaCha Nonce size 96 bit for one message per symmetric-key. Sizes are usually: 64-bit classic, 96-bit IETF, 192-bit big.

Definition at line 104 of file CryptoConfig.java.

Here is the caller graph for this function:

Member Data Documentation

◆ pk_type

final String org.cipherpack.CryptoConfig.pk_type

Definition at line 34 of file CryptoConfig.java.

◆ pk_fingerprt_hash_algo

final String org.cipherpack.CryptoConfig.pk_fingerprt_hash_algo

Definition at line 35 of file CryptoConfig.java.

◆ pk_enc_padding_algo

final String org.cipherpack.CryptoConfig.pk_enc_padding_algo

Definition at line 36 of file CryptoConfig.java.

◆ pk_enc_hash_algo

final String org.cipherpack.CryptoConfig.pk_enc_hash_algo

Definition at line 37 of file CryptoConfig.java.

◆ pk_sign_algo

final String org.cipherpack.CryptoConfig.pk_sign_algo

Definition at line 38 of file CryptoConfig.java.

◆ sym_enc_algo

final String org.cipherpack.CryptoConfig.sym_enc_algo

Definition at line 39 of file CryptoConfig.java.

◆ sym_enc_nonce_bytes

final long org.cipherpack.CryptoConfig.sym_enc_nonce_bytes

Definition at line 40 of file CryptoConfig.java.


The documentation for this class was generated from the following file: