Skip navigation links
A B C D E G H I K L S T 

A

AesCbcWithIntegrity - Class in com.tozny.crypto.android
Simple library for the "right" defaults for AES key generation, encryption, and decryption using 128-bit AES, CBC, PKCS5 padding, and a random 16-byte IV with SHA1PRNG.
AesCbcWithIntegrity() - Constructor for class com.tozny.crypto.android.AesCbcWithIntegrity
 
AesCbcWithIntegrity.CipherTextIvMac - Class in com.tozny.crypto.android
Holder class that allows us to bundle ciphertext and IV together.
AesCbcWithIntegrity.PrngFixes - Class in com.tozny.crypto.android
Fixes for the RNG as per http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html This software is provided 'as-is', without any express or implied warranty.
AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom - Class in com.tozny.crypto.android
SecureRandomSpi which passes all requests to the Linux PRNG ( /dev/urandom).
AesCbcWithIntegrity.SecretKeys - Class in com.tozny.crypto.android
Holder class that has both the secret AES key for encryption (confidentiality) and the secret HMAC key for integrity.
apply() - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity.PrngFixes
Applies all fixes.

B

BASE64_FLAGS - Static variable in class com.tozny.crypto.android.AesCbcWithIntegrity
 

C

CipherTextIvMac(byte[], byte[], byte[]) - Constructor for class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
Construct a new bundle of ciphertext and IV.
CipherTextIvMac(String) - Constructor for class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
Constructs a new bundle of ciphertext and IV from a string of the format base64(iv):base64(ciphertext).
com.tozny.crypto.android - package com.tozny.crypto.android
 
constantTimeEq(byte[], byte[]) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Simple constant-time equality of two byte arrays.

D

decrypt(AesCbcWithIntegrity.CipherTextIvMac, AesCbcWithIntegrity.SecretKeys) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
AES CBC decrypt.
decryptString(AesCbcWithIntegrity.CipherTextIvMac, AesCbcWithIntegrity.SecretKeys, String) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
AES CBC decrypt.
decryptString(AesCbcWithIntegrity.CipherTextIvMac, AesCbcWithIntegrity.SecretKeys) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
AES CBC decrypt.

E

encrypt(String, AesCbcWithIntegrity.SecretKeys) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Generates a random IV and encrypts this plain text with the given key.
encrypt(String, AesCbcWithIntegrity.SecretKeys, String) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Generates a random IV and encrypts this plain text with the given key.
encrypt(byte[], AesCbcWithIntegrity.SecretKeys) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Generates a random IV and encrypts this plain text with the given key.
engineGenerateSeed(int) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
engineNextBytes(byte[]) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
engineSetSeed(byte[]) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
equals(Object) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
 
equals(Object) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
 

G

generateIv() - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Creates a random Initialization Vector (IV) of IV_LENGTH_BYTES.
generateKey() - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
A function that generates random AES and HMAC keys and prints out exceptions but doesn't throw them since none should be encountered.
generateKeyFromPassword(String, byte[]) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
A function that generates password-based AES and HMAC keys.
generateKeyFromPassword(String, byte[], int) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
A function that generates password-based AES and HMAC keys.
generateKeyFromPassword(String, String) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
A function that generates password-based AES and HMAC keys.
generateKeyFromPassword(String, String, int) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
A function that generates password-based AES and HMAC keys.
generateMac(byte[], SecretKey) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Generate the mac based on HMAC_ALGORITHM
generateSalt() - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Generates a random salt.
getCipherText() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
 
getConfidentialityKey() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
 
getIntegrityKey() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
 
getIv() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
 
getMac() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
 

H

hashCode() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
 
hashCode() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
 

I

ivCipherConcat(byte[], byte[]) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
Concatinate the IV to the cipherText using array copy.

K

keys(String) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
An aes key derived from a base64 encoded key.
keyString(AesCbcWithIntegrity.SecretKeys) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Converts the given AES/HMAC keys into a base64 encoded string suitable for storage.

L

LinuxPRNGSecureRandom() - Constructor for class com.tozny.crypto.android.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 

S

saltString(byte[]) - Static method in class com.tozny.crypto.android.AesCbcWithIntegrity
Converts the given salt into a base64 encoded string suitable for storage.
SecretKeys(SecretKey, SecretKey) - Constructor for class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
Construct the secret keys container.
setConfidentialityKey(SecretKey) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
 
setIntegrityKey(SecretKey) - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
 

T

toString() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.CipherTextIvMac
Encodes this ciphertext, IV, mac as a string.
toString() - Method in class com.tozny.crypto.android.AesCbcWithIntegrity.SecretKeys
Encodes the two keys as a string
A B C D E G H I K L S T 
Skip navigation links