Lines Matching refs:auth_tok_key

464 ecryptfs_verify_auth_tok_from_key(struct key *auth_tok_key,  in ecryptfs_verify_auth_tok_from_key()  argument
469 (*auth_tok) = ecryptfs_get_key_payload_data(auth_tok_key); in ecryptfs_verify_auth_tok_from_key()
491 struct key **auth_tok_key, in ecryptfs_find_global_auth_tok_for_sig() argument
498 (*auth_tok_key) = NULL; in ecryptfs_find_global_auth_tok_for_sig()
525 (*auth_tok_key) = walker->global_auth_tok_key; in ecryptfs_find_global_auth_tok_for_sig()
526 key_get(*auth_tok_key); in ecryptfs_find_global_auth_tok_for_sig()
560 struct key **auth_tok_key, in ecryptfs_find_auth_tok_for_sig() argument
567 rc = ecryptfs_find_global_auth_tok_for_sig(auth_tok_key, auth_tok, in ecryptfs_find_auth_tok_for_sig()
579 rc = ecryptfs_keyring_auth_tok_for_sig(auth_tok_key, auth_tok, in ecryptfs_find_auth_tok_for_sig()
629 struct key *auth_tok_key = NULL; in ecryptfs_write_tag_70_packet() local
642 &auth_tok_key, in ecryptfs_write_tag_70_packet()
870 if (auth_tok_key) { in ecryptfs_write_tag_70_packet()
871 up_write(&(auth_tok_key->sem)); in ecryptfs_write_tag_70_packet()
872 key_put(auth_tok_key); in ecryptfs_write_tag_70_packet()
919 struct key *auth_tok_key = NULL; in ecryptfs_parse_tag_70_packet() local
986 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key, in ecryptfs_parse_tag_70_packet()
1107 if (auth_tok_key) { in ecryptfs_parse_tag_70_packet()
1108 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_tag_70_packet()
1109 key_put(auth_tok_key); in ecryptfs_parse_tag_70_packet()
1627 int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key, in ecryptfs_keyring_auth_tok_for_sig() argument
1633 (*auth_tok_key) = request_key(&key_type_user, sig, NULL); in ecryptfs_keyring_auth_tok_for_sig()
1634 if (!(*auth_tok_key) || IS_ERR(*auth_tok_key)) { in ecryptfs_keyring_auth_tok_for_sig()
1635 (*auth_tok_key) = ecryptfs_get_encrypted_key(sig); in ecryptfs_keyring_auth_tok_for_sig()
1636 if (!(*auth_tok_key) || IS_ERR(*auth_tok_key)) { in ecryptfs_keyring_auth_tok_for_sig()
1639 rc = process_request_key_err(PTR_ERR(*auth_tok_key)); in ecryptfs_keyring_auth_tok_for_sig()
1640 (*auth_tok_key) = NULL; in ecryptfs_keyring_auth_tok_for_sig()
1644 down_write(&(*auth_tok_key)->sem); in ecryptfs_keyring_auth_tok_for_sig()
1645 rc = ecryptfs_verify_auth_tok_from_key(*auth_tok_key, auth_tok); in ecryptfs_keyring_auth_tok_for_sig()
1647 up_write(&(*auth_tok_key)->sem); in ecryptfs_keyring_auth_tok_for_sig()
1648 key_put(*auth_tok_key); in ecryptfs_keyring_auth_tok_for_sig()
1649 (*auth_tok_key) = NULL; in ecryptfs_keyring_auth_tok_for_sig()
1774 struct key *auth_tok_key = NULL; in ecryptfs_parse_packet_set() local
1886 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key, in ecryptfs_parse_packet_set()
1906 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_packet_set()
1907 key_put(auth_tok_key); in ecryptfs_parse_packet_set()
1914 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_packet_set()
1915 key_put(auth_tok_key); in ecryptfs_parse_packet_set()
1919 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_packet_set()
1920 key_put(auth_tok_key); in ecryptfs_parse_packet_set()
1965 pki_encrypt_session_key(struct key *auth_tok_key, in pki_encrypt_session_key() argument
1981 up_write(&(auth_tok_key->sem)); in pki_encrypt_session_key()
1982 key_put(auth_tok_key); in pki_encrypt_session_key()
2024 struct key *auth_tok_key, struct ecryptfs_auth_tok *auth_tok, in write_tag_1_packet() argument
2045 up_write(&(auth_tok_key->sem)); in write_tag_1_packet()
2046 key_put(auth_tok_key); in write_tag_1_packet()
2052 rc = pki_encrypt_session_key(auth_tok_key, auth_tok, crypt_stat, in write_tag_1_packet()
2396 struct key *auth_tok_key = NULL; in ecryptfs_generate_key_packet_set() local
2415 rc = ecryptfs_find_global_auth_tok_for_sig(&auth_tok_key, in ecryptfs_generate_key_packet_set()
2430 up_write(&(auth_tok_key->sem)); in ecryptfs_generate_key_packet_set()
2431 key_put(auth_tok_key); in ecryptfs_generate_key_packet_set()
2450 auth_tok_key, auth_tok, in ecryptfs_generate_key_packet_set()
2459 up_write(&(auth_tok_key->sem)); in ecryptfs_generate_key_packet_set()
2460 key_put(auth_tok_key); in ecryptfs_generate_key_packet_set()