Searched defs:salt (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp30 * Will print out the salt and key in hex.
51 unsigned char salt[SALT_LEN]; local
53 if (read(fd, &salt, SALT_LEN) != SALT_LEN) {
54 fprintf(stderr, "Could not read salt from /dev/urandom: %s\n", strerror(errno));
62 if (PKCS5_PBKDF2_HMAC_SHA1(argv[1], strlen(argv[1]), salt, SALT_LEN,
68 printf("salt=");
70 printf("%02x", salt[i]);
H A DMain.cpp44 {"salt", required_argument, NULL, 's'},
57 memset(&salt, 0, sizeof(salt));
64 unsigned char salt[SALT_LEN]; member in class:PackageInfo
82 " -s <8 byte hex salt> sets the crypto key salt (if encrypted)\n"
103 obb->setSalt(info->salt, SALT_LEN);
145 const unsigned char* salt = obb->getSalt(&saltLen); local
146 if (salt != NULL) {
148 printf("%02x", salt[
[all...]
/frameworks/base/core/java/android/content/res/
H A DObbInfo.java52 * The salt for the encryption algorithm.
56 public byte[] salt; field in class:ObbInfo
85 dest.writeByteArray(salt);
104 salt = source.createByteArray();
/frameworks/base/core/jni/
H A Dandroid_content_res_ObbScanner.cpp38 jfieldID salt; member in struct:android::__anon860
68 const unsigned char* salt = obb->getSalt(&saltLen); local
71 env->SetByteArrayRegion(saltArray, 0, saltLen, (jbyte*)salt);
72 env->SetObjectField(obbInfo, gObbInfoClassInfo.salt, saltArray);
93 gObbInfoClassInfo.salt = GetFieldIDOrDie(env, clazz, "salt", "[B");
/frameworks/base/libs/androidfw/tests/
H A DObbFile_test.cpp68 unsigned char salt[SALT_SIZE] = {0x01, 0x10, 0x55, 0xAA, 0xFF, 0x00, 0x5A, 0xA5}; local
69 EXPECT_TRUE(mObbFile->setSalt(salt, SALT_SIZE))
89 EXPECT_EQ(sizeof(salt), saltLen)
90 << "salt sizes were not the same";
92 for (size_t i = 0; i < sizeof(salt); i++) {
93 EXPECT_EQ(salt[i], newSalt[i])
94 << "salt character " << i << " should be equal";
96 EXPECT_TRUE(memcmp(newSalt, salt, sizeof(salt)) == 0)
/frameworks/base/include/androidfw/
H A DObbFile.h84 bool setSalt(const unsigned char* salt, size_t length) { argument
89 memcpy(mSalt, salt, sizeof(mSalt));
130 /* The encryption salt. */
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java620 // persisted) salt. Validation is performed by running the challenge text through the
621 // same PBKDF2 cycle with the persisted salt; if the resulting derived key string matches
1131 // integer length of the salt array, followed by the salt,
1134 byte[] salt = new byte[saltLen];
1135 in.readFully(salt);
1137 mPasswordSalt = salt;
1549 private SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) { argument
1550 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds);
1553 private SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, in argument
1566 buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) argument
1595 makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, int rounds) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 3841 milliseconds