Lines Matching refs:auth_tok
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()
75 auth_tok->token.password.hash_algo = PGP_DIGEST_ALGO_SHA512; in ecryptfs_fill_auth_tok()
76 auth_tok->token.password.flags &= ~(ECRYPTFS_PERSISTENT_PASSWORD); in ecryptfs_fill_auth_tok()