A B C D E F G H I L 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
 
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

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.
clone() - Method in class org.cryptomator.cryptolib.api.Masterkey
 
clone() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
 
close() - Method in interface org.cryptomator.cryptolib.api.Cryptor
close() - Method in class org.cryptomator.cryptolib.common.DecryptingReadableByteChannel
 
close() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
close() - Method in class org.cryptomator.cryptolib.common.EncryptingReadableByteChannel
 
close() - Method in class org.cryptomator.cryptolib.common.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.
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.
destroy() - Method in interface org.cryptomator.cryptolib.api.Cryptor
 
destroy() - Method in class org.cryptomator.cryptolib.common.DestroyableSecretKey
 
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
destroySilently(Destroyable) - Static method in class org.cryptomator.cryptolib.common.Destroyables
 

E

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
 

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(DestroyableSecretKey, AlgorithmParameterSpec) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
 
forEncryption(DestroyableSecretKey, 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(DestroyableSecretKey) - Method in class org.cryptomator.cryptolib.common.CipherSupplier
 
forWrapping(DestroyableSecretKey) - 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(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.
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
 
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
 
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
 

L

load(InputStream, CharSequence) - Method in class org.cryptomator.cryptolib.common.MasterkeyFileAccess
 
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
 
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

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
 
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
 
Scrypt() - Constructor for class org.cryptomator.cryptolib.common.Scrypt
 
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
 
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
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

withKey(SecretKey) - Method in class org.cryptomator.cryptolib.common.MacSupplier
 
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
 
A B C D E F G H I L M O P R S U V W 
All Classes All Packages