Lines Matching full:salt
710 // we read the raw blob to just to get the salt to generate
717 // find salt at EOF if present, otherwise we have an old file
718 uint8_t* salt;
720 salt = (uint8_t*) &rawBlob + length - SALT_SIZE;
722 salt = NULL;
725 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt);
735 // if salt was missing, generate one and write a new master key file with the salt.
736 if (salt == NULL) {
815 uint8_t* salt) {
817 if (salt != NULL) {
820 // pre-gingerbread used this hardwired salt, readMasterKey will rewrite these when found
821 salt = (uint8_t*) "keystore";
826 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt,