Wiselib
Classes | Functions
wiselib.testing/algorithms/privacy/code_pc/src/header/common.h File Reference
#include <pbc.h>

Go to the source code of this file.

Classes

struct  Enc
struct  CipherText
struct  PlainText
struct  Pub
struct  Msk
struct  PubTriple
struct  Pk
struct  Sk
struct  Key

Functions

PlainTextfromString (pairing_t pairing, char *message)
char * toString (pairing_t pairing, PlainText *message)
unsigned char * ciphertext2bytes (pairing_t pairing, CipherText *ct)
CipherTextbytes2ciphertext (pairing_t pairing, unsigned char *buffer)
unsigned char * key2bytes (pairing_t pairing, Key *key)
Keybytes2key (pairing_t pairing, unsigned char *buffer)
unsigned char * pk2bytes (pairing_t pairing, Pk *key)
Pkbytes2pk (pairing_t pairing, unsigned char *buffer)
unsigned char * sk2bytes (pairing_t pairing, Sk *key)
Skbytes2sk (pairing_t pairing, unsigned char *buffer)
unsigned char * pub2bytes (pairing_t pairing, Pub *key)
Pubbytes2pub (pairing_t pairing, unsigned char *buffer)
unsigned char * msk2bytes (pairing_t pairing, Msk *key)
Mskbytes2msk (pairing_t pairing, unsigned char *buffer)
int ciphertext_size (pairing_t pairing)
int key_size (pairing_t pairing)
int pk_size (pairing_t pairing)
int sk_size (pairing_t pairing)
int msk_size (pairing_t pairing)
int pub_size (pairing_t pairing)
int pubtriple_size (pairing_t pairing)
void clear_ciphertext (CipherText *ct)
void clear_plaintext (PlainText *message)
void clear_key (Key *key)
void store (unsigned char *buffer, int len, char *filename)
void load (unsigned char *buffer, int len, char *filename)

Function Documentation

CipherText* bytes2ciphertext ( pairing_t  pairing,
unsigned char *  buffer 
)
Key* bytes2key ( pairing_t  pairing,
unsigned char *  buffer 
)
Msk* bytes2msk ( pairing_t  pairing,
unsigned char *  buffer 
)
Pk* bytes2pk ( pairing_t  pairing,
unsigned char *  buffer 
)
Pub* bytes2pub ( pairing_t  pairing,
unsigned char *  buffer 
)
Sk* bytes2sk ( pairing_t  pairing,
unsigned char *  buffer 
)
unsigned char* ciphertext2bytes ( pairing_t  pairing,
CipherText ct 
)
int ciphertext_size ( pairing_t  pairing)
void clear_ciphertext ( CipherText ct)
void clear_key ( Key key)
void clear_plaintext ( PlainText message)
PlainText* fromString ( pairing_t  pairing,
char *  message 
)
unsigned char* key2bytes ( pairing_t  pairing,
Key key 
)
int key_size ( pairing_t  pairing)
void load ( unsigned char *  buffer,
int  len,
char *  filename 
)
unsigned char* msk2bytes ( pairing_t  pairing,
Msk key 
)
int msk_size ( pairing_t  pairing)
unsigned char* pk2bytes ( pairing_t  pairing,
Pk key 
)
int pk_size ( pairing_t  pairing)
unsigned char* pub2bytes ( pairing_t  pairing,
Pub key 
)
int pub_size ( pairing_t  pairing)
int pubtriple_size ( pairing_t  pairing)
unsigned char* sk2bytes ( pairing_t  pairing,
Sk key 
)
int sk_size ( pairing_t  pairing)
void store ( unsigned char *  buffer,
int  len,
char *  filename 
)
char* toString ( pairing_t  pairing,
PlainText message 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines