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