3
* Licensed Materials - Property of IBM
5
* trousers - An open source TCG Software Stack
7
* (C) Copyright International Business Machines Corp. 2006
11
#ifndef ANONYMITY_REVOCATION_H_
12
#define ANONYMITY_REVOCATION_H_
15
#include "daa_structs.h"
18
* Cramer Shoup public key (CSPublicKey.java)
20
typedef struct tdCS_PUBLIC_KEY {
27
typedef struct tdCS_ENCRYPTION_RESULT {
32
} CS_ENCRYPTION_RESULT;
34
CS_ENCRYPTION_RESULT *create_CS_ENCRYPTION_RESULT( bi_ptr c1, bi_ptr c2, bi_ptr c3, bi_ptr c4);
37
* Cramer-Shoup Encryption Result including randomness.
39
* from com.ibm.zurich.tcg.daa.anonymityrevocationCSEncryptionResultRandomness
41
typedef struct tdCS_ENCRYPTION_RESULT_RANDOMNESS {
43
CS_ENCRYPTION_RESULT *result;
44
} CS_ENCRYPTION_RESULT_RANDOMNESS;
47
* Cramer-Shoup EncryptionProof
48
* from com.ibm.zurich.tcg.daa.anonymityrevocation.CSEncryptionProof
50
CS_ENCRYPTION_RESULT_RANDOMNESS *compute_ecryption_proof(
55
const bi_ptr randomness,
56
const CS_PUBLIC_KEY *key,
57
const struct tdTSS_DAA_PK_internal *daa_key,
58
const BYTE *condition,
59
const int conditionLength,
60
const EVP_MD *messageDigest);
62
#endif /*ANONYMITY_REVOCATION_H_*/