Home | History | Annotate | Download | only in keystore

Lines Matching full:salt

502         // we read the raw blob to just to get the salt to generate
509 // find salt at EOF if present, otherwise we have an old file
510 uint8_t* salt;
512 salt = (uint8_t*) &rawBlob + length - SALT_SIZE;
514 salt = NULL;
517 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt);
526 // if salt was missing, generate one and write a new master key file with the salt.
527 if (salt == NULL) {
729 static void generateKeyFromPassword(uint8_t* key, ssize_t keySize, Value* pw, uint8_t* salt) {
731 if (salt != NULL) {
734 // pre-gingerbread used this hardwired salt, readMasterKey will rewrite these when found
735 salt = (uint8_t*) "keystore";
739 PKCS5_PBKDF2_HMAC_SHA1((char*) pw->value, pw->length, salt, saltSize, 8192, keySize, key);