Searched refs:auth_tok (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/fs/ecryptfs/ |
D | debug.c | 32 void ecryptfs_dump_auth_tok(struct ecryptfs_auth_tok *auth_tok) in ecryptfs_dump_auth_tok() argument 38 auth_tok); in ecryptfs_dump_auth_tok() 39 if (auth_tok->flags & ECRYPTFS_PRIVATE_KEY) { in ecryptfs_dump_auth_tok() 43 ecryptfs_to_hex(salt, auth_tok->token.password.salt, in ecryptfs_dump_auth_tok() 47 if (auth_tok->token.password.flags & in ecryptfs_dump_auth_tok() 51 memcpy(sig, auth_tok->token.password.signature, in ecryptfs_dump_auth_tok() 57 auth_tok->session_key.flags); in ecryptfs_dump_auth_tok() 58 if (auth_tok->session_key.flags in ecryptfs_dump_auth_tok() 62 if (auth_tok->session_key.flags in ecryptfs_dump_auth_tok() 66 if (auth_tok->session_key.flags & ECRYPTFS_CONTAINS_DECRYPTED_KEY) { in ecryptfs_dump_auth_tok() [all …]
|
D | keystore.c | 467 struct ecryptfs_auth_tok **auth_tok) in ecryptfs_verify_auth_tok_from_key() argument 471 (*auth_tok) = ecryptfs_get_key_payload_data(auth_tok_key); in ecryptfs_verify_auth_tok_from_key() 472 if (IS_ERR(*auth_tok)) { in ecryptfs_verify_auth_tok_from_key() 473 rc = PTR_ERR(*auth_tok); in ecryptfs_verify_auth_tok_from_key() 474 *auth_tok = NULL; in ecryptfs_verify_auth_tok_from_key() 478 if (ecryptfs_verify_version((*auth_tok)->version)) { in ecryptfs_verify_auth_tok_from_key() 486 if ((*auth_tok)->token_type != ECRYPTFS_PASSWORD in ecryptfs_verify_auth_tok_from_key() 487 && (*auth_tok)->token_type != ECRYPTFS_PRIVATE_KEY) { in ecryptfs_verify_auth_tok_from_key() 500 struct ecryptfs_auth_tok **auth_tok, in ecryptfs_find_global_auth_tok_for_sig() argument 507 (*auth_tok) = NULL; in ecryptfs_find_global_auth_tok_for_sig() [all …]
|
D | ecryptfs_kernel.h | 54 void ecryptfs_dump_auth_tok(struct ecryptfs_auth_tok *auth_tok); 72 struct ecryptfs_auth_tok *auth_tok; member 128 struct ecryptfs_auth_tok *auth_tok; in ecryptfs_get_key_payload_data() local 131 auth_tok = ecryptfs_get_encrypted_key_payload_data(key); in ecryptfs_get_key_payload_data() 132 if (auth_tok) in ecryptfs_get_key_payload_data() 133 return auth_tok; in ecryptfs_get_key_payload_data() 381 struct ecryptfs_auth_tok auth_tok; member 680 struct ecryptfs_auth_tok **auth_tok,
|
D | crypto.c | 231 struct ecryptfs_global_auth_tok *auth_tok, *auth_tok_tmp; in ecryptfs_destroy_mount_crypt_stat() local 236 list_for_each_entry_safe(auth_tok, auth_tok_tmp, in ecryptfs_destroy_mount_crypt_stat() 239 list_del(&auth_tok->mount_crypt_stat_list); in ecryptfs_destroy_mount_crypt_stat() 240 if (!(auth_tok->flags & ECRYPTFS_AUTH_TOK_INVALID)) in ecryptfs_destroy_mount_crypt_stat() 241 key_put(auth_tok->global_auth_tok_key); in ecryptfs_destroy_mount_crypt_stat() 242 kmem_cache_free(ecryptfs_global_auth_tok_cache, auth_tok); in ecryptfs_destroy_mount_crypt_stat()
|
D | main.c | 202 struct ecryptfs_auth_tok *auth_tok; in ecryptfs_init_global_auth_toks() local 209 &global_auth_tok->global_auth_tok_key, &auth_tok, in ecryptfs_init_global_auth_toks()
|
/Linux-v4.19/security/keys/encrypted-keys/ |
D | ecryptfs_format.c | 21 u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok) in ecryptfs_get_auth_tok_key() argument 23 return auth_tok->token.password.session_key_encryption_key; in ecryptfs_get_auth_tok_key() 50 int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok, in ecryptfs_fill_auth_tok() argument 56 auth_tok->version = (((uint16_t)(major << 8) & 0xFF00) in ecryptfs_fill_auth_tok() 58 auth_tok->token_type = ECRYPTFS_PASSWORD; in ecryptfs_fill_auth_tok() 59 strncpy((char *)auth_tok->token.password.signature, key_desc, in ecryptfs_fill_auth_tok() 61 auth_tok->token.password.session_key_encryption_key_bytes = in ecryptfs_fill_auth_tok() 69 auth_tok->token.password.flags |= in ecryptfs_fill_auth_tok() 72 auth_tok->session_key.encrypted_key[0] = 0; in ecryptfs_fill_auth_tok() 73 auth_tok->session_key.encrypted_key_size = 0; in ecryptfs_fill_auth_tok() [all …]
|
D | ecryptfs_format.h | 25 u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok); 27 int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
|