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