Home
last modified time | relevance | path

Searched refs:keySizeInBytes (Results 1 – 2 of 2) sorted by relevance

/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DBrokenKeyDerivationActivity.java71 private static SecretKey deriveKeyInsecurely(String password, int keySizeInBytes) { in deriveKeyInsecurely() argument
74 InsecureSHA1PRNGKeyDerivator.deriveInsecureKey(passwordBytes, keySizeInBytes), in deriveKeyInsecurely()
81 private SecretKey deriveKeySecurely(String password, int keySizeInBytes) { in deriveKeySecurely() argument
84 100 /* iterationCount */, keySizeInBytes * 8 /* key size in bits */); in deriveKeySecurely()
DInsecureSHA1PRNGKeyDerivator.java38 public static byte[] deriveInsecureKey(byte[] seed, int keySizeInBytes) { in deriveInsecureKey() argument
41 byte[] key = new byte[keySizeInBytes]; in deriveInsecureKey()