Class CipherParams
- java.lang.Object
-
- org.syncany.crypto.CipherParams
-
public abstract class CipherParams extends java.lang.Object
Defines important crypto constants used in the application.Warning: The class defines constants that (if changed) can lead to invalidated ciphertext data. Do not change any of these parameters unless you know what you are doing!
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CERTIFICATE_IDENTIFIER
Certificate alias used to identify server certificate in the key store.static java.lang.String
CERTIFICATE_KEYPAIR_ALGORITHM
Key generation algorithm name used for the key pair generation (used for the self-signed certificate).static int
CERTIFICATE_KEYPAIR_SIZE
Key size used for the key pair generation (used for the self-signed certificate).static java.lang.String
CERTIFICATE_ORGANIZATION
Organization (O) set in the RDN of the self-signed certificate.static java.lang.String
CERTIFICATE_ORGUNIT
Organizational unit (OU) set in the RDN of the self-signed certificate.static java.security.Provider
CRYPTO_PROVIDER
Defines the cryptography provider used in the application.static java.lang.String
CRYPTO_PROVIDER_ID
Defines the name of the cryptography provider.static org.bouncycastle.crypto.Digest
KEY_DERIVATION_DIGEST
Hash function used in the HKDF key derivation algorithm for deriving keys from a master key.static byte[]
KEY_DERIVATION_INFO
Additional info used in the HKDF key derivation algorithm.static java.lang.String
MASTER_KEY_DERIVATION_FUNCTION
Password-based key derivation function used to generate the master key from the user's password.static int
MASTER_KEY_DERIVATION_ROUNDS
Number of rounds the password-based key derivation function is applied during the master key generation process.static int
MASTER_KEY_SALT_SIZE
Size of the salt used to generate the master key.static int
MASTER_KEY_SIZE
Size of a generated master key (in bits).
-
Constructor Summary
Constructors Constructor Description CipherParams()
-
-
-
Field Detail
-
CRYPTO_PROVIDER_ID
public static final java.lang.String CRYPTO_PROVIDER_ID
Defines the name of the cryptography provider. The constant is used during crypto provider registration, as well as to instantiate cipher algorithms.- See Also:
CRYPTO_PROVIDER
, Constant Field Values
-
CRYPTO_PROVIDER
public static final java.security.Provider CRYPTO_PROVIDER
Defines the cryptography provider used in the application. The provider registration is done in the cipher utility class.- See Also:
CRYPTO_PROVIDER_ID
-
MASTER_KEY_DERIVATION_FUNCTION
public static final java.lang.String MASTER_KEY_DERIVATION_FUNCTION
Password-based key derivation function used to generate the master key from the user's password.Warning: Changing this constant may lead to unrecoverable ciphertext data Do not change this constant unless you know what you are doing!
-
MASTER_KEY_DERIVATION_ROUNDS
public static final int MASTER_KEY_DERIVATION_ROUNDS
Number of rounds the password-based key derivation function is applied during the master key generation process.Warning: Changing this constant may lead to unrecoverable ciphertext data Do not change this constant unless you know what you are doing!
-
MASTER_KEY_SIZE
public static final int MASTER_KEY_SIZE
Size of a generated master key (in bits). This value is used during the key generation by the password-based key derivation function.Warning: Changing this constant may lead to unrecoverable ciphertext data Do not change this constant unless you know what you are doing!
-
MASTER_KEY_SALT_SIZE
public static final int MASTER_KEY_SALT_SIZE
Size of the salt used to generate the master key. This value is used during the key generation by the password-based key derivation function.Warning: Changing this constant may lead to unrecoverable ciphertext data Do not change this constant unless you know what you are doing!
-
KEY_DERIVATION_DIGEST
public static final org.bouncycastle.crypto.Digest KEY_DERIVATION_DIGEST
Hash function used in the HKDF key derivation algorithm for deriving keys from a master key.Warning: Changing this constant may lead to unrecoverable ciphertext data Do not change this constant unless you know what you are doing!
- See Also:
KEY_DERIVATION_INFO
-
KEY_DERIVATION_INFO
public static final byte[] KEY_DERIVATION_INFO
Additional info used in the HKDF key derivation algorithm.Warning: Changing this constant may lead to unrecoverable ciphertext data Do not change this constant unless you know what you are doing!
- See Also:
KEY_DERIVATION_DIGEST
-
CERTIFICATE_KEYPAIR_ALGORITHM
public static final java.lang.String CERTIFICATE_KEYPAIR_ALGORITHM
Key generation algorithm name used for the key pair generation (used for the self-signed certificate).- See Also:
- Constant Field Values
-
CERTIFICATE_KEYPAIR_SIZE
public static final int CERTIFICATE_KEYPAIR_SIZE
Key size used for the key pair generation (used for the self-signed certificate).- See Also:
- Constant Field Values
-
CERTIFICATE_IDENTIFIER
public static final java.lang.String CERTIFICATE_IDENTIFIER
Certificate alias used to identify server certificate in the key store.- See Also:
- Constant Field Values
-
CERTIFICATE_ORGANIZATION
public static final java.lang.String CERTIFICATE_ORGANIZATION
Organization (O) set in the RDN of the self-signed certificate.- See Also:
- Constant Field Values
-
CERTIFICATE_ORGUNIT
public static final java.lang.String CERTIFICATE_ORGUNIT
Organizational unit (OU) set in the RDN of the self-signed certificate.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CipherParams
public CipherParams()
-
-