Lines Matching defs:pw
475 ResponseCode initialize(Value* pw) {
479 ResponseCode response = writeMasterKey(pw);
487 ResponseCode writeMasterKey(Value* pw) {
489 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, mSalt);
496 ResponseCode readMasterKey(Value* pw) {
517 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt);
531 response = writeMasterKey(pw);
729 static void generateKeyFromPassword(uint8_t* key, ssize_t keySize, Value* pw, uint8_t* salt) {
739 PKCS5_PBKDF2_HMAC_SHA1((char*) pw->value, pw->length, salt, saltSize, 8192, keySize, key);
1029 static ResponseCode password(KeyStore* keyStore, int, uid_t, Value* pw, Value*, Value*) {
1033 return keyStore->initialize(pw);
1037 return keyStore->writeMasterKey(pw);
1041 return keyStore->readMasterKey(pw);
1052 static ResponseCode unlock(KeyStore* keyStore, int sock, uid_t uid, Value* pw, Value* unused,
1054 return password(keyStore, sock, uid, pw, unused, unused2);