Lines Matching refs:new_auth_tok
1226 struct ecryptfs_auth_tok **new_auth_tok, in parse_tag_1_packet() argument
1235 (*new_auth_tok) = NULL; in parse_tag_1_packet()
1270 (*new_auth_tok) = &auth_tok_list_item->auth_tok; in parse_tag_1_packet()
1295 ecryptfs_to_hex((*new_auth_tok)->token.private_key.signature, in parse_tag_1_packet()
1301 (*new_auth_tok)->session_key.encrypted_key_size = in parse_tag_1_packet()
1303 if ((*new_auth_tok)->session_key.encrypted_key_size in parse_tag_1_packet()
1310 memcpy((*new_auth_tok)->session_key.encrypted_key, in parse_tag_1_packet()
1312 (*packet_size) += (*new_auth_tok)->session_key.encrypted_key_size; in parse_tag_1_packet()
1313 (*new_auth_tok)->session_key.flags &= in parse_tag_1_packet()
1315 (*new_auth_tok)->session_key.flags |= in parse_tag_1_packet()
1317 (*new_auth_tok)->token_type = ECRYPTFS_PRIVATE_KEY; in parse_tag_1_packet()
1318 (*new_auth_tok)->flags = 0; in parse_tag_1_packet()
1319 (*new_auth_tok)->session_key.flags &= in parse_tag_1_packet()
1321 (*new_auth_tok)->session_key.flags &= in parse_tag_1_packet()
1326 (*new_auth_tok) = NULL; in parse_tag_1_packet()
1358 struct ecryptfs_auth_tok **new_auth_tok, in parse_tag_3_packet() argument
1367 (*new_auth_tok) = NULL; in parse_tag_3_packet()
1404 (*new_auth_tok) = &auth_tok_list_item->auth_tok; in parse_tag_3_packet()
1423 (*new_auth_tok)->session_key.encrypted_key_size = in parse_tag_3_packet()
1425 if ((*new_auth_tok)->session_key.encrypted_key_size in parse_tag_3_packet()
1450 (*new_auth_tok)->session_key.encrypted_key_size; in parse_tag_3_packet()
1464 memcpy((*new_auth_tok)->token.password.salt, in parse_tag_3_packet()
1468 (*new_auth_tok)->token.password.hash_iterations = in parse_tag_3_packet()
1475 memcpy((*new_auth_tok)->session_key.encrypted_key, in parse_tag_3_packet()
1477 (*new_auth_tok)->session_key.encrypted_key_size); in parse_tag_3_packet()
1479 (*new_auth_tok)->session_key.encrypted_key_size; in parse_tag_3_packet()
1480 (*new_auth_tok)->session_key.flags &= in parse_tag_3_packet()
1482 (*new_auth_tok)->session_key.flags |= in parse_tag_3_packet()
1484 (*new_auth_tok)->token.password.hash_algo = 0x01; /* MD5 */ in parse_tag_3_packet()
1492 (*new_auth_tok)->token_type = ECRYPTFS_PASSWORD; in parse_tag_3_packet()
1495 (*new_auth_tok)->session_key.flags &= in parse_tag_3_packet()
1497 (*new_auth_tok)->session_key.flags &= in parse_tag_3_packet()
1502 (*new_auth_tok) = NULL; in parse_tag_3_packet()
1765 struct ecryptfs_auth_tok *new_auth_tok; in ecryptfs_parse_packet_set() local
1784 &auth_tok_list, &new_auth_tok, in ecryptfs_parse_packet_set()
1819 ecryptfs_to_hex(new_auth_tok->token.password.signature, in ecryptfs_parse_packet_set()
1821 new_auth_tok->token.password.signature[ in ecryptfs_parse_packet_set()
1828 &auth_tok_list, &new_auth_tok, in ecryptfs_parse_packet_set()
2515 struct ecryptfs_global_auth_tok *new_auth_tok; in ecryptfs_add_global_auth_tok() local
2517 new_auth_tok = kmem_cache_zalloc(ecryptfs_global_auth_tok_cache, in ecryptfs_add_global_auth_tok()
2519 if (!new_auth_tok) in ecryptfs_add_global_auth_tok()
2522 memcpy(new_auth_tok->sig, sig, ECRYPTFS_SIG_SIZE_HEX); in ecryptfs_add_global_auth_tok()
2523 new_auth_tok->flags = global_auth_tok_flags; in ecryptfs_add_global_auth_tok()
2524 new_auth_tok->sig[ECRYPTFS_SIG_SIZE_HEX] = '\0'; in ecryptfs_add_global_auth_tok()
2526 list_add(&new_auth_tok->mount_crypt_stat_list, in ecryptfs_add_global_auth_tok()