Lines Matching refs:auth_tok_key
445 * @auth_tok_key: key containing the authentication token
452 ecryptfs_verify_auth_tok_from_key(struct key *auth_tok_key,
457 (*auth_tok) = ecryptfs_get_key_payload_data(auth_tok_key);
485 struct key **auth_tok_key,
492 (*auth_tok_key) = NULL;
519 (*auth_tok_key) = walker->global_auth_tok_key;
520 key_get(*auth_tok_key);
539 * @auth_tok_key: key containing the authentication token
555 struct key **auth_tok_key,
562 rc = ecryptfs_find_global_auth_tok_for_sig(auth_tok_key, auth_tok,
574 rc = ecryptfs_keyring_auth_tok_for_sig(auth_tok_key, auth_tok,
625 struct key *auth_tok_key = NULL;
634 &auth_tok_key,
846 if (auth_tok_key) {
847 up_write(&(auth_tok_key->sem));
848 key_put(auth_tok_key);
898 struct key *auth_tok_key = NULL;
961 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key,
1088 if (auth_tok_key) {
1089 up_write(&(auth_tok_key->sem));
1090 key_put(auth_tok_key);
1609 int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key,
1615 (*auth_tok_key) = request_key(&key_type_user, sig, NULL);
1616 if (IS_ERR(*auth_tok_key)) {
1617 (*auth_tok_key) = ecryptfs_get_encrypted_key(sig);
1618 if (IS_ERR(*auth_tok_key)) {
1621 rc = process_request_key_err(PTR_ERR(*auth_tok_key));
1622 (*auth_tok_key) = NULL;
1626 down_write(&(*auth_tok_key)->sem);
1627 rc = ecryptfs_verify_auth_tok_from_key(*auth_tok_key, auth_tok);
1629 up_write(&(*auth_tok_key)->sem);
1630 key_put(*auth_tok_key);
1631 (*auth_tok_key) = NULL;
1770 struct key *auth_tok_key = NULL;
1882 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key,
1902 up_write(&(auth_tok_key->sem));
1903 key_put(auth_tok_key);
1910 up_write(&(auth_tok_key->sem));
1911 key_put(auth_tok_key);
1915 up_write(&(auth_tok_key->sem));
1916 key_put(auth_tok_key);
1961 pki_encrypt_session_key(struct key *auth_tok_key,
1977 up_write(&(auth_tok_key->sem));
1978 key_put(auth_tok_key);
2008 * @auth_tok_key: The authentication token key to unlock and put when done with
2020 struct key *auth_tok_key, struct ecryptfs_auth_tok *auth_tok,
2041 up_write(&(auth_tok_key->sem));
2042 key_put(auth_tok_key);
2048 rc = pki_encrypt_session_key(auth_tok_key, auth_tok, crypt_stat,
2405 struct key *auth_tok_key = NULL;
2424 rc = ecryptfs_find_global_auth_tok_for_sig(&auth_tok_key,
2439 up_write(&(auth_tok_key->sem));
2440 key_put(auth_tok_key);
2459 auth_tok_key, auth_tok,
2468 up_write(&(auth_tok_key->sem));
2469 key_put(auth_tok_key);