Lines Matching refs:new_auth_tok
1212 * @new_auth_tok: Pointer to a pointer to memory that this function
1225 struct ecryptfs_auth_tok **new_auth_tok,
1234 (*new_auth_tok) = NULL;
1269 (*new_auth_tok) = &auth_tok_list_item->auth_tok;
1294 ecryptfs_to_hex((*new_auth_tok)->token.private_key.signature,
1300 (*new_auth_tok)->session_key.encrypted_key_size =
1302 if ((*new_auth_tok)->session_key.encrypted_key_size
1309 memcpy((*new_auth_tok)->session_key.encrypted_key,
1311 (*packet_size) += (*new_auth_tok)->session_key.encrypted_key_size;
1312 (*new_auth_tok)->session_key.flags &=
1314 (*new_auth_tok)->session_key.flags |=
1316 (*new_auth_tok)->token_type = ECRYPTFS_PRIVATE_KEY;
1317 (*new_auth_tok)->flags = 0;
1318 (*new_auth_tok)->session_key.flags &=
1320 (*new_auth_tok)->session_key.flags &=
1325 (*new_auth_tok) = NULL;
1344 * @new_auth_tok: Pointer to a pointer to memory that this function
1357 struct ecryptfs_auth_tok **new_auth_tok,
1366 (*new_auth_tok) = NULL;
1403 (*new_auth_tok) = &auth_tok_list_item->auth_tok;
1422 (*new_auth_tok)->session_key.encrypted_key_size =
1424 if ((*new_auth_tok)->session_key.encrypted_key_size
1449 (*new_auth_tok)->session_key.encrypted_key_size;
1463 memcpy((*new_auth_tok)->token.password.salt,
1467 (*new_auth_tok)->token.password.hash_iterations =
1472 * (*new_auth_tok)->session_key.encrypted_key_size =
1474 memcpy((*new_auth_tok)->session_key.encrypted_key,
1476 (*new_auth_tok)->session_key.encrypted_key_size);
1478 (*new_auth_tok)->session_key.encrypted_key_size;
1479 (*new_auth_tok)->session_key.flags &=
1481 (*new_auth_tok)->session_key.flags |=
1483 (*new_auth_tok)->token.password.hash_algo = 0x01; /* MD5 */
1491 (*new_auth_tok)->token_type = ECRYPTFS_PASSWORD;
1494 (*new_auth_tok)->session_key.flags &=
1496 (*new_auth_tok)->session_key.flags &=
1501 (*new_auth_tok) = NULL;
1764 struct ecryptfs_auth_tok *new_auth_tok;
1783 &auth_tok_list, &new_auth_tok,
1818 ecryptfs_to_hex(new_auth_tok->token.password.signature,
1820 new_auth_tok->token.password.signature[
1827 &auth_tok_list, &new_auth_tok,
2514 struct ecryptfs_global_auth_tok *new_auth_tok;
2516 new_auth_tok = kmem_cache_zalloc(ecryptfs_global_auth_tok_cache,
2518 if (!new_auth_tok)
2521 memcpy(new_auth_tok->sig, sig, ECRYPTFS_SIG_SIZE_HEX);
2522 new_auth_tok->flags = global_auth_tok_flags;
2523 new_auth_tok->sig[ECRYPTFS_SIG_SIZE_HEX] = '\0';
2525 list_add(&new_auth_tok->mount_crypt_stat_list,