blob: 383346dac6a667ef701276305d31a88619918e9b (
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
|
/*
* Licensed Materials - Property of IBM
*
* trousers - An open source TCG Software Stack
*
* (C) Copyright International Business Machines Corp. 2006
*
*/
#ifndef ANONYMITY_REVOCATION_H_
#define ANONYMITY_REVOCATION_H_
#include "bi.h"
#include "daa_structs.h"
/**
* Cramer Shoup public key (CSPublicKey.java)
*/
typedef struct tdCS_PUBLIC_KEY {
bi_ptr eta;
bi_ptr lambda1;
bi_ptr lambda2;
bi_ptr lambda3;
} CS_PUBLIC_KEY;
typedef struct tdCS_ENCRYPTION_RESULT {
bi_ptr c1;
bi_ptr c2;
bi_ptr c3;
bi_ptr c4;
} CS_ENCRYPTION_RESULT;
CS_ENCRYPTION_RESULT *create_CS_ENCRYPTION_RESULT( bi_ptr c1, bi_ptr c2, bi_ptr c3, bi_ptr c4);
/*
* Cramer-Shoup Encryption Result including randomness.
*
* from com.ibm.zurich.tcg.daa.anonymityrevocationCSEncryptionResultRandomness
*/
typedef struct tdCS_ENCRYPTION_RESULT_RANDOMNESS {
bi_ptr randomness;
CS_ENCRYPTION_RESULT *result;
} CS_ENCRYPTION_RESULT_RANDOMNESS;
/*
* Cramer-Shoup EncryptionProof
* from com.ibm.zurich.tcg.daa.anonymityrevocation.CSEncryptionProof
*/
CS_ENCRYPTION_RESULT_RANDOMNESS *compute_ecryption_proof(
const bi_ptr msg,
const bi_ptr delta1,
const bi_ptr delta2,
const bi_ptr delta3,
const bi_ptr randomness,
const CS_PUBLIC_KEY *key,
const struct tdTSS_DAA_PK_internal *daa_key,
const BYTE *condition,
const int conditionLength,
const EVP_MD *messageDigest);
#endif /*ANONYMITY_REVOCATION_H_*/
|