summaryrefslogtreecommitdiff
path: root/src/include/daa/key_correct.h
blob: a6ce7d9ebb2b8b447dd4c8adbc9c0278409708f3 (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

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

#ifndef KEY_CORRECT_H_
#define KEY_CORRECT_H_

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

   /**
   * Verifies if the parameters Z,R0,R1,RReceiver and RIssuer of the public key
   * were correctly computed.
   *
   * @param pk
   *          the public key, which one wants to verfy.
   */
TSS_RESULT
is_pk_correct( TSS_DAA_PK_internal *public_key,
		TSS_DAA_PK_PROOF_internal *proof,
		int *isCorrect
);

#endif /*KEY_CORRECTNESS_PROOF_H_*/