Wiselib
wiselib.testing/algorithms/privacy/code_pc/src/header/utma_weak.h
Go to the documentation of this file.
00001 #ifndef _UTMA_WEAK_H
00002 #define  _UTMA_WEAK_H
00003 
00004 #include <pbc.h>
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 #include <assert.h>
00008 #include "common.h"
00009 
00010 #ifdef   __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014     PubTriple* GenPub(pairing_t *pairing);
00015 
00016     Key* GenKey(Pub *pub, Msk *msk);
00017 
00018     CipherText* rE(Pub *pub, Pk *pk, PlainText *M);
00019 
00020     PlainText* rD(Pub *pub, Sk *sk, CipherText *Ct);
00021 
00022     CipherText* Randomize(Pub *pub, CipherText *Ct);
00023 
00024     Enc* star(Pub *pub, Enc *encp);
00025 
00026     Enc* enc(Pub *pub, Pk *pk, PlainText *M);
00027 
00028     PlainText* dec(Pub *pub, Sk *sk, Enc *enc);
00029 
00030     void freeCypherText(CipherText* ct);
00031 
00032 #ifdef   __cplusplus
00033 }
00034 #endif
00035 
00036 #endif   /* _UTMA_WEAK_H */
00037 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines