Searched refs:auth_tok (Results 1 – 4 of 4) sorted by relevance
19 u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok) in ecryptfs_get_auth_tok_key() argument21 return auth_tok->token.password.session_key_encryption_key; in ecryptfs_get_auth_tok_key()48 int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok, in ecryptfs_fill_auth_tok() argument54 auth_tok->version = (((uint16_t)(major << 8) & 0xFF00) in ecryptfs_fill_auth_tok()56 auth_tok->token_type = ECRYPTFS_PASSWORD; in ecryptfs_fill_auth_tok()57 strscpy_pad(auth_tok->token.password.signature, key_desc); in ecryptfs_fill_auth_tok()58 auth_tok->token.password.session_key_encryption_key_bytes = in ecryptfs_fill_auth_tok()66 auth_tok->token.password.flags |= in ecryptfs_fill_auth_tok()69 auth_tok->session_key.encrypted_key[0] = 0; in ecryptfs_fill_auth_tok()70 auth_tok->session_key.encrypted_key_size = 0; in ecryptfs_fill_auth_tok()[all …]
22 u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok);24 int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
454 struct ecryptfs_auth_tok **auth_tok) in ecryptfs_verify_auth_tok_from_key() argument458 (*auth_tok) = ecryptfs_get_key_payload_data(auth_tok_key); in ecryptfs_verify_auth_tok_from_key()459 if (IS_ERR(*auth_tok)) { in ecryptfs_verify_auth_tok_from_key()460 rc = PTR_ERR(*auth_tok); in ecryptfs_verify_auth_tok_from_key()461 *auth_tok = NULL; in ecryptfs_verify_auth_tok_from_key()465 if (ecryptfs_verify_version((*auth_tok)->version)) { in ecryptfs_verify_auth_tok_from_key()473 if ((*auth_tok)->token_type != ECRYPTFS_PASSWORD in ecryptfs_verify_auth_tok_from_key()474 && (*auth_tok)->token_type != ECRYPTFS_PRIVATE_KEY) { in ecryptfs_verify_auth_tok_from_key()487 struct ecryptfs_auth_tok **auth_tok, in ecryptfs_find_global_auth_tok_for_sig() argument494 (*auth_tok) = NULL; in ecryptfs_find_global_auth_tok_for_sig()[all …]
135 struct ecryptfs_global_auth_tok *auth_tok, *auth_tok_tmp; in ecryptfs_destroy_mount_crypt_stat() local140 list_for_each_entry_safe(auth_tok, auth_tok_tmp, in ecryptfs_destroy_mount_crypt_stat()143 list_del(&auth_tok->mount_crypt_stat_list); in ecryptfs_destroy_mount_crypt_stat()144 if (!(auth_tok->flags & ECRYPTFS_AUTH_TOK_INVALID)) in ecryptfs_destroy_mount_crypt_stat()145 key_put(auth_tok->global_auth_tok_key); in ecryptfs_destroy_mount_crypt_stat()146 kmem_cache_free(ecryptfs_global_auth_tok_cache, auth_tok); in ecryptfs_destroy_mount_crypt_stat()