A B C D E F G H I K L M O P R S U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AES_CTR - Static variable in class org.cryptomator.cryptolib.common.CipherSupplier
- AES_GCM - Static variable in class org.cryptomator.cryptolib.common.CipherSupplier
- AesKeyWrap - Class in org.cryptomator.cryptolib.common
- AesKeyWrap() - Constructor for class org.cryptomator.cryptolib.common.AesKeyWrap
- AuthenticationFailedException - Exception in org.cryptomator.cryptolib.api
- AuthenticationFailedException(String) - Constructor for exception org.cryptomator.cryptolib.api.AuthenticationFailedException
- AuthenticationFailedException(String, Throwable) - Constructor for exception org.cryptomator.cryptolib.api.AuthenticationFailedException
B
- build() - Method in class org.cryptomator.cryptolib.common.X509CertBuilder
-
Creates a self-signed X509Certificate containing the public key and signed with the private key of a given key pair.
- ByteBuffers - Class in org.cryptomator.cryptolib.common
- ByteBuffers() - Constructor for class org.cryptomator.cryptolib.common.ByteBuffers
C
- canSkipAuthentication() - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
- changePassphrase(byte[], CharSequence, CharSequence) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
-
Reencrypts a masterkey with a new passphrase.
- changePassphrase(InputStream, OutputStream, CharSequence, CharSequence) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
- CipherSupplier - Class in org.cryptomator.cryptolib.common
- CipherSupplier(String) - Constructor for class org.cryptomator.cryptolib.common.CipherSupplier
- ciphertextChunkSize() - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
- ciphertextSize(long) - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
-
Calculates the size of the ciphertext resulting from the given cleartext encrypted with the given cryptor.
- cleartextChunkSize() - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
- cleartextSize(long) - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
-
Calculates the size of the cleartext resulting from the given ciphertext decrypted with the given cryptor.
- close() - Method in interface org.cryptomator.cryptolib.api.Cryptor
-
Calls
Cryptor.destroy()
. - close() - Method in class org.cryptomator.cryptolib.common.DecryptingReadableByteChannel
- close() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Same as
DestroyableSecretKey.destroy()
- close() - Method in class org.cryptomator.cryptolib.common.EncryptingReadableByteChannel
- close() - Method in class org.cryptomator.cryptolib.common.EncryptingWritableByteChannel
- copy() - Method in class org.cryptomator.cryptolib.api.Masterkey
- copy() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Returns an independent copy of this key
- copy(ByteBuffer, ByteBuffer) - Static method in class org.cryptomator.cryptolib.common.ByteBuffers
-
Copies as many bytes as possible from the given source to the destination buffer.
- create() - Method in interface org.cryptomator.cryptolib.api.FileHeaderCryptor
- create(SecureRandom) - Static method in class org.cryptomator.cryptolib.common.ReseedingSecureRandom
-
Creates a pre-configured automatically reseeding SHA1PRNG instance, reseeding itself with 440 bits from the given seeder after generating 2^30 bytes, thus satisfying recommendations by NIST SP 800-90A Rev 1.
- CryptoException - Exception in org.cryptomator.cryptolib.api
- CryptoException() - Constructor for exception org.cryptomator.cryptolib.api.CryptoException
- CryptoException(String) - Constructor for exception org.cryptomator.cryptolib.api.CryptoException
- CryptoException(String, Throwable) - Constructor for exception org.cryptomator.cryptolib.api.CryptoException
- Cryptor - Interface in org.cryptomator.cryptolib.api
- CryptorProvider - Interface in org.cryptomator.cryptolib.api
- CryptorProvider.Scheme - Enum in org.cryptomator.cryptolib.api
-
A combination of ciphers to use for filename and file content encryption
D
- decryptChunk(ByteBuffer, long, FileHeader, boolean) - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
-
Decrypts a single chunk of ciphertext.
- decryptChunk(ByteBuffer, ByteBuffer, long, FileHeader, boolean) - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
-
Decrypts a single chunk of ciphertext.
- decryptFilename(BaseEncoding, String, byte[]...) - Method in interface org.cryptomator.cryptolib.api.FileNameCryptor
- decryptHeader(ByteBuffer) - Method in interface org.cryptomator.cryptolib.api.FileHeaderCryptor
- DecryptingReadableByteChannel - Class in org.cryptomator.cryptolib.common
- DecryptingReadableByteChannel(ReadableByteChannel, Cryptor, boolean) - Constructor for class org.cryptomator.cryptolib.common.DecryptingReadableByteChannel
-
Creates a DecryptingReadableByteChannel that decrypts a whole ciphertext file beginning at its first byte.
- DecryptingReadableByteChannel(ReadableByteChannel, Cryptor, boolean, FileHeader, long) - Constructor for class org.cryptomator.cryptolib.common.DecryptingReadableByteChannel
-
Creates a DecryptingReadableByteChannel with a previously read header, allowing to start decryption at any chunk.
- decryptMasterkey(ECPrivateKey, String, String) - Static method in class org.cryptomator.cryptolib.common.MasterkeyHubAccess
-
Decrypts a masterkey retrieved from Cryptomator Hub
- destroy() - Method in interface org.cryptomator.cryptolib.api.Cryptor
- destroy() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
- destroy() - Method in class org.cryptomator.cryptolib.common.ECKeyPair
- Destroyables - Class in org.cryptomator.cryptolib.common
- Destroyables() - Constructor for class org.cryptomator.cryptolib.common.Destroyables
- DestroyableSecretKey - Class in org.cryptomator.cryptolib.common
- DestroyableSecretKey(byte[], int, int, String) - Constructor for class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Creates a new destroyable secret key, copying of the provided raw key bytes.
- DestroyableSecretKey(byte[], String) - Constructor for class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Convenience constructor for
DestroyableSecretKey(byte[], int, int, String)
- destroySilently(Destroyable) - Static method in class org.cryptomator.cryptolib.common.Destroyables
E
- ECKeyPair - Class in org.cryptomator.cryptolib.common
- ENC_ALG - Static variable in class org.cryptomator.cryptolib.api.Masterkey
- encMasterKey - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
- encryptChunk(ByteBuffer, long, FileHeader) - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
-
Encrypts a single chunk of cleartext.
- encryptChunk(ByteBuffer, ByteBuffer, long, FileHeader) - Method in interface org.cryptomator.cryptolib.api.FileContentCryptor
-
Encrypts a single chunk of cleartext.
- encryptFilename(BaseEncoding, String, byte[]...) - Method in interface org.cryptomator.cryptolib.api.FileNameCryptor
- encryptHeader(FileHeader) - Method in interface org.cryptomator.cryptolib.api.FileHeaderCryptor
- EncryptingReadableByteChannel - Class in org.cryptomator.cryptolib.common
- EncryptingReadableByteChannel(ReadableByteChannel, Cryptor) - Constructor for class org.cryptomator.cryptolib.common.EncryptingReadableByteChannel
-
Creates an EncryptingReadableByteChannel that encrypts a whole cleartext file beginning at its first byte.
- EncryptingWritableByteChannel - Class in org.cryptomator.cryptolib.common
- EncryptingWritableByteChannel(WritableByteChannel, Cryptor) - Constructor for class org.cryptomator.cryptolib.common.EncryptingWritableByteChannel
- equals(Object) - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
- equals(Object) - Method in class org.cryptomator.cryptolib.common.ECKeyPair
F
- fileContentCryptor() - Method in interface org.cryptomator.cryptolib.api.Cryptor
- FileContentCryptor - Interface in org.cryptomator.cryptolib.api
- FileHeader - Interface in org.cryptomator.cryptolib.api
- fileHeaderCryptor() - Method in interface org.cryptomator.cryptolib.api.Cryptor
- FileHeaderCryptor - Interface in org.cryptomator.cryptolib.api
- fileNameCryptor() - Method in interface org.cryptomator.cryptolib.api.Cryptor
- FileNameCryptor - Interface in org.cryptomator.cryptolib.api
-
Provides deterministic encryption capabilities as filenames must not change on subsequent encryption attempts, otherwise each change results in major directory structure changes which would be a terrible idea for cloud storage encryption.
- fill(ReadableByteChannel, ByteBuffer) - Static method in class org.cryptomator.cryptolib.common.ByteBuffers
-
Fills the given
buffer
by reading from the given source until either reaching EOF orbuffer
has no moreremaining space
. - forDecryption(SecretKey, AlgorithmParameterSpec) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
- forEncryption(SecretKey, AlgorithmParameterSpec) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
- forScheme(CryptorProvider.Scheme) - Static method in interface org.cryptomator.cryptolib.api.CryptorProvider
-
Finds a CryptorProvider implementation for the given combination of ciphers.
- forUnwrapping(SecretKey) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
- forWrapping(SecretKey) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
- from(Key) - Static method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Casts or converts a given
SecretKey
to a DestroyableSecretKey - from(DestroyableSecretKey, DestroyableSecretKey) - Static method in class org.cryptomator.cryptolib.api.Masterkey
G
- generate() - Static method in class org.cryptomator.cryptolib.common.P384KeyPair
- generate(SecureRandom) - Static method in class org.cryptomator.cryptolib.api.Masterkey
- generate(SecureRandom, String, int) - Static method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Creates a new key of given length and for use with given algorithm using entropy from the given csprng.
- get() - Method in class org.cryptomator.cryptolib.common.MessageDigestSupplier
- getAlgorithm() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
- getDetectedVersion() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
- getEncKey() - Method in class org.cryptomator.cryptolib.api.Masterkey
-
Get the encryption subkey.
- getEncoded() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
-
Returns the raw key bytes this instance wraps.
- getFormat() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
- getMacKey() - Method in class org.cryptomator.cryptolib.api.Masterkey
-
Get the MAC subkey.
- getPrivate() - Method in class org.cryptomator.cryptolib.common.ECKeyPair
- getPublic() - Method in class org.cryptomator.cryptolib.common.ECKeyPair
- getReserved() - Method in interface org.cryptomator.cryptolib.api.FileHeader
-
Deprecated.Don't rely on this method. It may be redefined any time.
- getSupportedVersion() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
H
- hashCode() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
- hashCode() - Method in class org.cryptomator.cryptolib.common.ECKeyPair
- hashDirectoryId(String) - Method in interface org.cryptomator.cryptolib.api.FileNameCryptor
- headerSize() - Method in interface org.cryptomator.cryptolib.api.FileHeaderCryptor
- HMAC_SHA256 - Static variable in class org.cryptomator.cryptolib.common.MacSupplier
I
- InvalidPassphraseException - Exception in org.cryptomator.cryptolib.api
- InvalidPassphraseException() - Constructor for exception org.cryptomator.cryptolib.api.InvalidPassphraseException
- isDestroyed() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
- isDestroyed() - Method in class org.cryptomator.cryptolib.common.ECKeyPair
- isOpen() - Method in class org.cryptomator.cryptolib.common.DecryptingReadableByteChannel
- isOpen() - Method in class org.cryptomator.cryptolib.common.EncryptingReadableByteChannel
- isOpen() - Method in class org.cryptomator.cryptolib.common.EncryptingWritableByteChannel
- isSoftwareOlderThanVault() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
- isVaultOlderThanSoftware() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
K
L
- load(InputStream, char[]) - Static method in class org.cryptomator.cryptolib.common.P384KeyPair
-
Loads a key pair from the given input stream
- load(InputStream, CharSequence) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
- load(Path, char[]) - Static method in class org.cryptomator.cryptolib.common.P384KeyPair
-
Loads a key pair from the given file
- load(Path, CharSequence) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
-
Loads the JSON contents from the given file and derives a KEK from the given passphrase to unwrap the contained keys.
- loadKey(URI) - Method in interface org.cryptomator.cryptolib.api.MasterkeyLoader
-
Loads a master key.
M
- MAC_ALG - Static variable in class org.cryptomator.cryptolib.api.Masterkey
- macMasterKey - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
- MacSupplier - Class in org.cryptomator.cryptolib.common
- MacSupplier(String) - Constructor for class org.cryptomator.cryptolib.common.MacSupplier
- Masterkey - Class in org.cryptomator.cryptolib.api
- Masterkey(byte[]) - Constructor for class org.cryptomator.cryptolib.api.Masterkey
- MasterkeyFile - Class in org.cryptomator.cryptolib.common
-
Representation of encrypted masterkey json file.
- MasterkeyFile() - Constructor for class org.cryptomator.cryptolib.common.MasterkeyFile
- MasterkeyFileAccess - Class in org.cryptomator.cryptolib.common
-
Allow loading and persisting of
masterkeys
from and to encrypted json files. - MasterkeyFileAccess(byte[], SecureRandom) - Constructor for class org.cryptomator.cryptolib.common.MasterkeyFileAccess
- MasterkeyHubAccess - Class in org.cryptomator.cryptolib.common
- MasterkeyLoader - Interface in org.cryptomator.cryptolib.api
-
Masterkey loaders load keys to unlock Cryptomator vaults.
- MasterkeyLoadingFailedException - Exception in org.cryptomator.cryptolib.api
- MasterkeyLoadingFailedException(String) - Constructor for exception org.cryptomator.cryptolib.api.MasterkeyLoadingFailedException
- MasterkeyLoadingFailedException(String, Throwable) - Constructor for exception org.cryptomator.cryptolib.api.MasterkeyLoadingFailedException
- MessageDigestSupplier - Class in org.cryptomator.cryptolib.common
- MessageDigestSupplier(String) - Constructor for class org.cryptomator.cryptolib.common.MessageDigestSupplier
O
- org.cryptomator.cryptolib.api - package org.cryptomator.cryptolib.api
-
High-level encryption library used in Cryptomator.
- org.cryptomator.cryptolib.common - package org.cryptomator.cryptolib.common
P
- P384KeyPair - Class in org.cryptomator.cryptolib.common
- persist(Masterkey, OutputStream, CharSequence, int) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
- persist(Masterkey, Path, CharSequence) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
-
Derives a KEK from the given passphrase and wraps the key material from
masterkey
. - persist(Masterkey, Path, CharSequence, int) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
- Pkcs12Exception - Exception in org.cryptomator.cryptolib.common
-
Loading from or exporting to PKCS12 format failed.
- Pkcs12Exception(String, Throwable) - Constructor for exception org.cryptomator.cryptolib.common.Pkcs12Exception
- Pkcs12PasswordException - Exception in org.cryptomator.cryptolib.common
-
Loading from PKCS12 format failed due to wrong password.
- Pkcs12PasswordException(Throwable) - Constructor for exception org.cryptomator.cryptolib.common.Pkcs12PasswordException
- provide(Masterkey, SecureRandom) - Method in interface org.cryptomator.cryptolib.api.CryptorProvider
-
Creates a new Cryptor instance for the given key
R
- read(Reader) - Static method in class org.cryptomator.cryptolib.common.MasterkeyFile
- read(ByteBuffer) - Method in class org.cryptomator.cryptolib.common.DecryptingReadableByteChannel
- read(ByteBuffer) - Method in class org.cryptomator.cryptolib.common.EncryptingReadableByteChannel
- readAllegedVaultVersion(byte[]) - Static method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
-
Deprecated.Starting with vault format 8, the vault version is no longer stored inside the masterkey file.
- ReseedingSecureRandom - Class in org.cryptomator.cryptolib.common
-
Wraps a fast CSPRNG, which gets reseeded automatically after a certain amount of bytes has been generated.
- ReseedingSecureRandom(SecureRandom, SecureRandom, long, int) - Constructor for class org.cryptomator.cryptolib.common.ReseedingSecureRandom
- RFC3394_KEYWRAP - Static variable in class org.cryptomator.cryptolib.common.CipherSupplier
S
- scheme() - Method in interface org.cryptomator.cryptolib.api.CryptorProvider
- scrypt(byte[], byte[], int, int, int) - Static method in class org.cryptomator.cryptolib.common.Scrypt
-
Derives a key from the given passphrase.
- scrypt(CharSequence, byte[], int, int, int) - Static method in class org.cryptomator.cryptolib.common.Scrypt
-
Derives a key from the given passphrase.
- Scrypt - Class in org.cryptomator.cryptolib.common
- scryptBlockSize - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
- scryptCostParam - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
- scryptSalt - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
- setReserved(long) - Method in interface org.cryptomator.cryptolib.api.FileHeader
-
Deprecated.Don't rely on this method. It may be redefined any time.
- SHA1 - Static variable in class org.cryptomator.cryptolib.common.MessageDigestSupplier
- SHA256 - Static variable in class org.cryptomator.cryptolib.common.MessageDigestSupplier
- SIV_CTRMAC - org.cryptomator.cryptolib.api.CryptorProvider.Scheme
-
AES-SIV for file name encryption AES-CTR + HMAC for content encryption
- SIV_GCM - org.cryptomator.cryptolib.api.CryptorProvider.Scheme
-
AES-SIV for file name encryption AES-GCM for content encryption
- store(OutputStream, char[]) - Method in class org.cryptomator.cryptolib.common.P384KeyPair
-
Stores this key in PKCS#12 format to the given output stream
- store(Path, char[]) - Method in class org.cryptomator.cryptolib.common.P384KeyPair
-
Stores this key pair in PKCS#12 format at the given path
- SUBKEY_LEN_BYTES - Static variable in class org.cryptomator.cryptolib.api.Masterkey
U
- UnsupportedVaultFormatException - Exception in org.cryptomator.cryptolib.api
- UnsupportedVaultFormatException(Integer, Integer) - Constructor for exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
- unwrap(DestroyableSecretKey, byte[], String) - Static method in class org.cryptomator.cryptolib.common.AesKeyWrap
V
- valueOf(String) - Static method in enum org.cryptomator.cryptolib.api.CryptorProvider.Scheme
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.cryptomator.cryptolib.api.CryptorProvider.Scheme
-
Returns an array containing the constants of this enum type, in the order they are declared.
- version - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
- versionMac - Variable in class org.cryptomator.cryptolib.common.MasterkeyFile
W
- withIssuer(String) - Method in class org.cryptomator.cryptolib.common.X509CertBuilder
-
Sets the certificate's issuer
- withKey(SecretKey) - Method in class org.cryptomator.cryptolib.common.MacSupplier
- withNotAfter(Instant) - Method in class org.cryptomator.cryptolib.common.X509CertBuilder
-
Sets the certificate's end of validity period
- withNotBefore(Instant) - Method in class org.cryptomator.cryptolib.common.X509CertBuilder
-
Sets the certificate's begin of validity period
- withSubject(String) - Method in class org.cryptomator.cryptolib.common.X509CertBuilder
-
Sets the certificate's subject
- wrap(DestroyableSecretKey, SecretKey) - Static method in class org.cryptomator.cryptolib.common.AesKeyWrap
- write(Writer) - Method in class org.cryptomator.cryptolib.common.MasterkeyFile
- write(ByteBuffer) - Method in class org.cryptomator.cryptolib.common.EncryptingWritableByteChannel
X
- X509CertBuilder - Class in org.cryptomator.cryptolib.common
-
Helper class to create self-signed X509v3 certificates from
key pairs
.
All Classes All Packages