summaryrefslogtreecommitdiff
path: root/src/include/daa/issuer.h
blob: 59b6a71d821976e39d65de719d8e07fa80941bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

/*
 * Licensed Materials - Property of IBM
 *
 * trousers - An open source TCG Software Stack
 *
 * (C) Copyright International Business Machines Corp. 2006-2007
 *
 */
#ifndef __ISSUER_H__
#define __ISSUER_H__

#include "daa/daa_structs.h"
#include "daa/daa_parameter.h"
#include "tsplog.h"


TSS_RESULT
generate_key_pair(int num_attributes_issuer,
		int num_attributes_receiver,
		int base_nameLength,
		BYTE *base_name,
		KEY_PAIR_WITH_PROOF_internal **key_pair_with_proof
);

TSS_DAA_PK_PROOF_internal *generate_proof(
	const bi_ptr product_PQ_prime,
	const TSS_DAA_PK_internal *public_key,
	const bi_ptr xz,
	const bi_ptr x0,
	const bi_ptr x1,
	bi_array_ptr x);

#if 0
TSPICALL
Tspi_DAA_IssueInit_internal(
	TSS_HDAA	hDAA,	// in
	TSS_HKEY	issuerAuthPK,	// in
	TSS_HKEY	issuerKeyPair,	// in
	TSS_DAA_IDENTITY_PROOF	identityProof,	// in
	UINT32	capitalUprimeLength,	// in
	BYTE*	capitalUprime,	// in
	UINT32	daaCounter,	// in
	UINT32*	nonceIssuerLength,	// out
	BYTE**	nonceIssuer,	// out
	UINT32*	authenticationChallengeLength,	// out
	BYTE**	authenticationChallenge,	// out
	TSS_DAA_JOIN_ISSUER_SESSION*  joinSession	// out
);

TSPICALL
Tspi_DAA_IssueCredential_internal(
	TSS_HDAA	hDAA,	// in
	UINT32	attributesIssuerLength,	// in
	BYTE**	attributesIssuer,	// in
	TSS_DAA_CREDENTIAL_REQUEST	credentialRequest,	// in
	TSS_DAA_JOIN_ISSUER_SESSION	joinSession,	// in
	TSS_DAA_CRED_ISSUER*	credIssuer	// out
);
#endif
TSS_RESULT
compute_join_challenge_issuer( TSS_DAA_PK_internal *pk_intern,
				bi_ptr v_prime_prime,
				bi_ptr capitalA,
				bi_ptr capital_Atilde,
				UINT32 nonceReceiverLength,
				BYTE *nonceReceiver,
				UINT32 *c_primeLength,
				BYTE **c_prime);  // out allocation

#endif