Lines Matching defs:td
426 load_token_data(TSS_HCONTEXT hContext, TOKEN_DATA *td)
453 rc = init_token_data(hContext, td);
484 READ_TOKEN_INFO_STR(fp, td->token_info.label,
485 sizeof (td->token_info.label));
486 READ_TOKEN_INFO_STR(fp, td->token_info.manufacturerID,
487 sizeof (td->token_info.manufacturerID));
488 READ_TOKEN_INFO_STR(fp, td->token_info.model,
489 sizeof (td->token_info.model));
490 READ_TOKEN_INFO_STR(fp, td->token_info.serialNumber,
491 sizeof (td->token_info.serialNumber));
492 READ_TOKEN_INFO_UINT32(fp, td->token_info.flags);
493 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulMaxSessionCount);
494 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulSessionCount);
495 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulRwSessionCount);
496 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulMaxPinLen);
497 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulMinPinLen);
498 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulTotalPublicMemory);
499 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulFreePublicMemory);
500 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulTotalPrivateMemory);
501 READ_TOKEN_INFO_UINT32(fp, td->token_info.ulFreePrivateMemory);
502 READ_TOKEN_INFO_STR(fp, &td->token_info.hardwareVersion,
503 sizeof (td->token_info.hardwareVersion));
504 READ_TOKEN_INFO_STR(fp, &td->token_info.firmwareVersion,
505 sizeof (td->token_info.firmwareVersion));
506 READ_TOKEN_INFO_STR(fp, td->token_info.utcTime,
507 sizeof (td->token_info.utcTime));
508 READ_TOKEN_INFO_STR(fp, td->user_pin_sha,
509 sizeof (td->user_pin_sha));
510 READ_TOKEN_INFO_STR(fp, td->so_pin_sha,
511 sizeof (td->so_pin_sha));
512 READ_TOKEN_INFO_STR(fp, td->next_token_object_name,
513 sizeof (td->next_token_object_name));
514 READ_TOKEN_INFO_STR(fp, &td->tweak_vector,
515 sizeof (td->tweak_vector));
541 save_token_data(TOKEN_DATA *td)
573 WRITE_TOKEN_INFO_STR(fp, td->token_info.label,
574 sizeof (td->token_info.label));
575 WRITE_TOKEN_INFO_STR(fp, td->token_info.manufacturerID,
576 sizeof (td->token_info.manufacturerID));
577 WRITE_TOKEN_INFO_STR(fp, td->token_info.model,
578 sizeof (td->token_info.model));
579 WRITE_TOKEN_INFO_STR(fp, td->token_info.serialNumber,
580 sizeof (td->token_info.serialNumber));
581 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.flags);
582 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulMaxSessionCount);
583 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulSessionCount);
584 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulRwSessionCount);
585 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulMaxPinLen);
586 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulMinPinLen);
587 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulTotalPublicMemory);
588 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulFreePublicMemory);
589 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulTotalPrivateMemory);
590 WRITE_TOKEN_INFO_UINT32(fp, td->token_info.ulFreePrivateMemory);
591 WRITE_TOKEN_INFO_STR(fp, &td->token_info.hardwareVersion,
592 sizeof (td->token_info.hardwareVersion));
593 WRITE_TOKEN_INFO_STR(fp, &td->token_info.firmwareVersion,
594 sizeof (td->token_info.firmwareVersion));
595 WRITE_TOKEN_INFO_STR(fp, td->token_info.utcTime,
596 sizeof (td->token_info.utcTime));
597 WRITE_TOKEN_INFO_STR(fp, td->user_pin_sha,
598 sizeof (td->user_pin_sha));
599 WRITE_TOKEN_INFO_STR(fp, td->so_pin_sha,
600 sizeof (td->so_pin_sha));
601 WRITE_TOKEN_INFO_STR(fp, td->next_token_object_name,
602 sizeof (td->next_token_object_name));
603 WRITE_TOKEN_INFO_STR(fp, &td->tweak_vector,
604 sizeof (td->tweak_vector));