A B C D E F G H I K M O P R S U V W 
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
 
as(Class<T>) - Method in class org.cryptomator.cryptolib.api.KeyFile
Creates a new version-specific KeyFile instance from this instance.
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

ByteBuffers - Class in org.cryptomator.cryptolib.common
 
ByteBuffers() - Constructor for class org.cryptomator.cryptolib.common.ByteBuffers
 

C

changePassphrase(CryptorProvider, byte[], byte[], CharSequence, CharSequence) - Static method in class org.cryptomator.cryptolib.Cryptors
Reencrypts a masterkey with a new passphrase.
changePassphrase(CryptorProvider, byte[], CharSequence, CharSequence) - Static method in class org.cryptomator.cryptolib.Cryptors
Reencrypts a masterkey with a new passphrase.
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, Cryptor) - Static method in class org.cryptomator.cryptolib.Cryptors
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, Cryptor) - Static method in class org.cryptomator.cryptolib.Cryptors
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
close() - Method in class org.cryptomator.cryptolib.DecryptingReadableByteChannel
 
close() - Method in class org.cryptomator.cryptolib.EncryptingReadableByteChannel
 
close() - Method in class org.cryptomator.cryptolib.EncryptingWritableByteChannel
 
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.
createFromKeyFile(KeyFile, CharSequence, byte[], int) - Method in interface org.cryptomator.cryptolib.api.CryptorProvider
 
createFromKeyFile(KeyFile, CharSequence, byte[], int) - Method in class org.cryptomator.cryptolib.v1.CryptorProviderImpl
 
createFromKeyFile(KeyFile, CharSequence, byte[], int) - Method in class org.cryptomator.cryptolib.v2.CryptorProviderImpl
 
createFromKeyFile(KeyFile, CharSequence, int) - Method in interface org.cryptomator.cryptolib.api.CryptorProvider
createFromKeyFile(KeyFile, CharSequence, int) - Method in class org.cryptomator.cryptolib.v1.CryptorProviderImpl
 
createFromKeyFile(KeyFile, CharSequence, int) - Method in class org.cryptomator.cryptolib.v2.CryptorProviderImpl
 
createFromRawKey(byte[]) - Method in interface org.cryptomator.cryptolib.api.CryptorProvider
 
createFromRawKey(byte[]) - Method in class org.cryptomator.cryptolib.v1.CryptorProviderImpl
 
createFromRawKey(byte[]) - Method in class org.cryptomator.cryptolib.v2.CryptorProviderImpl
 
createNew() - Method in interface org.cryptomator.cryptolib.api.CryptorProvider
 
createNew() - Method in class org.cryptomator.cryptolib.v1.CryptorProviderImpl
 
createNew() - Method in class org.cryptomator.cryptolib.v2.CryptorProviderImpl
 
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
 
CryptorProviderImpl - Class in org.cryptomator.cryptolib.v1
 
CryptorProviderImpl - Class in org.cryptomator.cryptolib.v2
 
CryptorProviderImpl(SecureRandom) - Constructor for class org.cryptomator.cryptolib.v1.CryptorProviderImpl
 
CryptorProviderImpl(SecureRandom) - Constructor for class org.cryptomator.cryptolib.v2.CryptorProviderImpl
 
Cryptors - Class in org.cryptomator.cryptolib
 
Cryptors() - Constructor for class org.cryptomator.cryptolib.Cryptors
 

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
 
decryptFilename(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
 
DecryptingReadableByteChannel(ReadableByteChannel, Cryptor, boolean) - Constructor for class org.cryptomator.cryptolib.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.DecryptingReadableByteChannel
Creates a DecryptingReadableByteChannel with a previously read header, allowing to start decryption at any chunk.
destroy() - Method in interface org.cryptomator.cryptolib.api.Cryptor
 

E

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
 
encryptFilename(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
 
EncryptingReadableByteChannel(ReadableByteChannel, Cryptor) - Constructor for class org.cryptomator.cryptolib.EncryptingReadableByteChannel
Creates an EncryptingReadableByteChannel that encrypts a whole cleartext file beginning at its first byte.
EncryptingWritableByteChannel - Class in org.cryptomator.cryptolib
 
EncryptingWritableByteChannel(WritableByteChannel, Cryptor) - Constructor for class org.cryptomator.cryptolib.EncryptingWritableByteChannel
 
exportRawKey(CryptorProvider, byte[], byte[], CharSequence) - Static method in class org.cryptomator.cryptolib.Cryptors
Decrypts the raw key from a given JSON-encoded masterkey file.

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 or buffer has no more remaining space.
forDecryption(SecretKey, AlgorithmParameterSpec) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
 
forEncryption(SecretKey, AlgorithmParameterSpec) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
 
forUnwrapping(SecretKey) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
 
forWrapping(SecretKey) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
 

G

get() - Method in class org.cryptomator.cryptolib.common.MessageDigestSupplier
 
getDetectedVersion() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
 
getFilesize() - Method in interface org.cryptomator.cryptolib.api.FileHeader
Deprecated.
No longer supported since vault version 5. Use Cryptors.cleartextSize(long, Cryptor) to calculate the cleartext size from the ciphertext size
getRawKey() - Method in interface org.cryptomator.cryptolib.api.Cryptor
 
getSupportedVersion() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
 
getVersion() - Method in class org.cryptomator.cryptolib.api.KeyFile
 

H

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
 
isOpen() - Method in class org.cryptomator.cryptolib.DecryptingReadableByteChannel
 
isOpen() - Method in class org.cryptomator.cryptolib.EncryptingReadableByteChannel
 
isOpen() - Method in class org.cryptomator.cryptolib.EncryptingWritableByteChannel
 
isSoftwareOlderThanVault() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
 
isVaultOlderThanSoftware() - Method in exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
 

K

KeyFile - Class in org.cryptomator.cryptolib.api
OOP-JSON interface for the masterkey file.

Each version might have its own package-private subclass of this file, which adds further properties.
KeyFile() - Constructor for class org.cryptomator.cryptolib.api.KeyFile
 

M

MacSupplier - Class in org.cryptomator.cryptolib.common
 
MacSupplier(String) - Constructor for class org.cryptomator.cryptolib.common.MacSupplier
 
MessageDigestSupplier - Class in org.cryptomator.cryptolib.common
 
MessageDigestSupplier(String) - Constructor for class org.cryptomator.cryptolib.common.MessageDigestSupplier
 

O

org.cryptomator.cryptolib - package org.cryptomator.cryptolib
High-level encryption library used in Cryptomator.
org.cryptomator.cryptolib.api - package org.cryptomator.cryptolib.api
 
org.cryptomator.cryptolib.common - package org.cryptomator.cryptolib.common
 
org.cryptomator.cryptolib.v1 - package org.cryptomator.cryptolib.v1
 
org.cryptomator.cryptolib.v2 - package org.cryptomator.cryptolib.v2
 

P

parse(byte[]) - Static method in class org.cryptomator.cryptolib.api.KeyFile
Parses a json keyfile.

R

read(ByteBuffer) - Method in class org.cryptomator.cryptolib.DecryptingReadableByteChannel
 
read(ByteBuffer) - Method in class org.cryptomator.cryptolib.EncryptingReadableByteChannel
 
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
 
restoreRawKey(CryptorProvider, byte[], byte[], CharSequence, int) - Static method in class org.cryptomator.cryptolib.Cryptors
Encrypts a raw key to a JSON-encoded masterkey file.
RFC3394_KEYWRAP - Static variable in class org.cryptomator.cryptolib.common.CipherSupplier
 

S

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
 
Scrypt() - Constructor for class org.cryptomator.cryptolib.common.Scrypt
 
serialize() - Method in class org.cryptomator.cryptolib.api.KeyFile
Creates a JSON representation of this instance.
setFilesize(long) - Method in interface org.cryptomator.cryptolib.api.FileHeader
Deprecated.
No longer used since vault version 5. Data stored in the header might get a different purpose in future versions.
setVersion(int) - Method in class org.cryptomator.cryptolib.api.KeyFile
 
SHA1 - Static variable in class org.cryptomator.cryptolib.common.MessageDigestSupplier
 

U

UnsupportedVaultFormatException - Exception in org.cryptomator.cryptolib.api
 
UnsupportedVaultFormatException(Integer, Integer) - Constructor for exception org.cryptomator.cryptolib.api.UnsupportedVaultFormatException
 
unwrap(SecretKey, byte[], String) - Static method in class org.cryptomator.cryptolib.common.AesKeyWrap
 

V

version1(SecureRandom) - Static method in class org.cryptomator.cryptolib.Cryptors
 
version2(SecureRandom) - Static method in class org.cryptomator.cryptolib.Cryptors
 

W

withKey(SecretKey) - Method in class org.cryptomator.cryptolib.common.MacSupplier
 
wrap(SecretKey, SecretKey) - Static method in class org.cryptomator.cryptolib.common.AesKeyWrap
 
write(ByteBuffer) - Method in class org.cryptomator.cryptolib.EncryptingWritableByteChannel
 
writeKeysToMasterkeyFile(CharSequence, byte[], int) - Method in interface org.cryptomator.cryptolib.api.Cryptor
 
writeKeysToMasterkeyFile(CharSequence, int) - Method in interface org.cryptomator.cryptolib.api.Cryptor
A B C D E F G H I K M O P R S U V W 
All Classes All Packages