• Home
  • Raw
  • Download

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()
554 struct key **auth_tok_key, in ecryptfs_find_auth_tok_for_sig() argument
561 rc = ecryptfs_find_global_auth_tok_for_sig(auth_tok_key, auth_tok, in ecryptfs_find_auth_tok_for_sig()
573 rc = ecryptfs_keyring_auth_tok_for_sig(auth_tok_key, auth_tok, in ecryptfs_find_auth_tok_for_sig()
624 struct key *auth_tok_key = NULL; in ecryptfs_write_tag_70_packet() local
633 &auth_tok_key, in ecryptfs_write_tag_70_packet()
845 if (auth_tok_key) { in ecryptfs_write_tag_70_packet()
846 up_write(&(auth_tok_key->sem)); in ecryptfs_write_tag_70_packet()
847 key_put(auth_tok_key); in ecryptfs_write_tag_70_packet()
897 struct key *auth_tok_key = NULL; in ecryptfs_parse_tag_70_packet() local
960 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key, in ecryptfs_parse_tag_70_packet()
1087 if (auth_tok_key) { in ecryptfs_parse_tag_70_packet()
1088 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_tag_70_packet()
1089 key_put(auth_tok_key); in ecryptfs_parse_tag_70_packet()
1608 int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key, in ecryptfs_keyring_auth_tok_for_sig() argument
1614 (*auth_tok_key) = request_key(&key_type_user, sig, NULL); in ecryptfs_keyring_auth_tok_for_sig()
1615 if (IS_ERR(*auth_tok_key)) { in ecryptfs_keyring_auth_tok_for_sig()
1616 (*auth_tok_key) = ecryptfs_get_encrypted_key(sig); in ecryptfs_keyring_auth_tok_for_sig()
1617 if (IS_ERR(*auth_tok_key)) { in ecryptfs_keyring_auth_tok_for_sig()
1620 rc = process_request_key_err(PTR_ERR(*auth_tok_key)); in ecryptfs_keyring_auth_tok_for_sig()
1621 (*auth_tok_key) = NULL; in ecryptfs_keyring_auth_tok_for_sig()
1625 down_write(&(*auth_tok_key)->sem); in ecryptfs_keyring_auth_tok_for_sig()
1626 rc = ecryptfs_verify_auth_tok_from_key(*auth_tok_key, auth_tok); in ecryptfs_keyring_auth_tok_for_sig()
1628 up_write(&(*auth_tok_key)->sem); in ecryptfs_keyring_auth_tok_for_sig()
1629 key_put(*auth_tok_key); in ecryptfs_keyring_auth_tok_for_sig()
1630 (*auth_tok_key) = NULL; in ecryptfs_keyring_auth_tok_for_sig()
1769 struct key *auth_tok_key = NULL; in ecryptfs_parse_packet_set() local
1881 rc = ecryptfs_find_auth_tok_for_sig(&auth_tok_key, in ecryptfs_parse_packet_set()
1901 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_packet_set()
1902 key_put(auth_tok_key); in ecryptfs_parse_packet_set()
1909 up_write(&(auth_tok_key->sem)); in ecryptfs_parse_packet_set()
1910 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()
1960 pki_encrypt_session_key(struct key *auth_tok_key, in pki_encrypt_session_key() argument
1976 up_write(&(auth_tok_key->sem)); in pki_encrypt_session_key()
1977 key_put(auth_tok_key); in pki_encrypt_session_key()
2019 struct key *auth_tok_key, struct ecryptfs_auth_tok *auth_tok, in write_tag_1_packet() argument
2040 up_write(&(auth_tok_key->sem)); in write_tag_1_packet()
2041 key_put(auth_tok_key); in write_tag_1_packet()
2047 rc = pki_encrypt_session_key(auth_tok_key, auth_tok, crypt_stat, in write_tag_1_packet()
2404 struct key *auth_tok_key = NULL; in ecryptfs_generate_key_packet_set() local
2423 rc = ecryptfs_find_global_auth_tok_for_sig(&auth_tok_key, in ecryptfs_generate_key_packet_set()
2438 up_write(&(auth_tok_key->sem)); in ecryptfs_generate_key_packet_set()
2439 key_put(auth_tok_key); in ecryptfs_generate_key_packet_set()
2458 auth_tok_key, auth_tok, in ecryptfs_generate_key_packet_set()
2467 up_write(&(auth_tok_key->sem)); in ecryptfs_generate_key_packet_set()
2468 key_put(auth_tok_key); in ecryptfs_generate_key_packet_set()