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);
554 struct key **auth_tok_key,
561 rc = ecryptfs_find_global_auth_tok_for_sig(auth_tok_key, auth_tok,
573 rc = ecryptfs_keyring_auth_tok_for_sig(auth_tok_key, auth_tok,
624 struct key *auth_tok_key = NULL;
633 &auth_tok_key,
845 if (auth_tok_key) {
846 up_write(&(auth_tok_key->sem));
847 key_put(auth_tok_key);
897 struct key *auth_tok_key = NULL;
960 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key,
1087 if (auth_tok_key) {
1088 up_write(&(auth_tok_key->sem));
1089 key_put(auth_tok_key);
1608 int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key,
1614 (*auth_tok_key) = request_key(&key_type_user, sig, NULL);
1615 if (IS_ERR(*auth_tok_key)) {
1616 (*auth_tok_key) = ecryptfs_get_encrypted_key(sig);
1617 if (IS_ERR(*auth_tok_key)) {
1620 rc = process_request_key_err(PTR_ERR(*auth_tok_key));
1621 (*auth_tok_key) = NULL;
1625 down_write(&(*auth_tok_key)->sem);
1626 rc = ecryptfs_verify_auth_tok_from_key(*auth_tok_key, auth_tok);
1628 up_write(&(*auth_tok_key)->sem);
1629 key_put(*auth_tok_key);
1630 (*auth_tok_key) = NULL;
1769 struct key *auth_tok_key = NULL;
1881 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key,
1901 up_write(&(auth_tok_key->sem));
1902 key_put(auth_tok_key);
1909 up_write(&(auth_tok_key->sem));
1910 key_put(auth_tok_key);
1914 up_write(&(auth_tok_key->sem));
1915 key_put(auth_tok_key);
1960 pki_encrypt_session_key(struct key *auth_tok_key,
1976 up_write(&(auth_tok_key->sem));
1977 key_put(auth_tok_key);
2007 * @auth_tok_key: The authentication token key to unlock and put when done with
2019 struct key *auth_tok_key, struct ecryptfs_auth_tok *auth_tok,
2040 up_write(&(auth_tok_key->sem));
2041 key_put(auth_tok_key);
2047 rc = pki_encrypt_session_key(auth_tok_key, auth_tok, crypt_stat,
2404 struct key *auth_tok_key = NULL;
2423 rc = ecryptfs_find_global_auth_tok_for_sig(&auth_tok_key,
2438 up_write(&(auth_tok_key->sem));
2439 key_put(auth_tok_key);
2458 auth_tok_key, auth_tok,
2467 up_write(&(auth_tok_key->sem));
2468 key_put(auth_tok_key);