#include <stdio.h>
#include <stdlib.h>
#include "../header/common.h"
Functions |
PlainText * | fromString (pairing_t pairing, char *message) |
char * | toString (pairing_t pairing, PlainText *message) |
unsigned char * | ciphertext2bytes (pairing_t pairing, CipherText *ct) |
CipherText * | bytes2ciphertext (pairing_t pairing, unsigned char *buffer) |
unsigned char * | key2bytes (pairing_t pairing, Key *key) |
Key * | bytes2key (pairing_t pairing, unsigned char *buffer) |
unsigned char * | pk2bytes (pairing_t pairing, Pk *key) |
Pk * | bytes2pk (pairing_t pairing, unsigned char *buffer) |
unsigned char * | sk2bytes (pairing_t pairing, Sk *key) |
Sk * | bytes2sk (pairing_t pairing, unsigned char *buffer) |
unsigned char * | pub2bytes (pairing_t pairing, Pub *pub) |
Pub * | bytes2pub (pairing_t pairing, unsigned char *buffer) |
unsigned char * | msk2bytes (pairing_t pairing, Msk *msk) |
Msk * | bytes2msk (pairing_t pairing, unsigned char *buffer) |
unsigned char * | pubtriple2bytes (pairing_t pairing, PubTriple *pub) |
PubTriple * | bytes2pubtriple (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 | pub_size (pairing_t pairing) |
int | msk_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 |
|
) |
| |
PubTriple* bytes2pubtriple |
( |
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_key |
( |
Key * |
key | ) |
|
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 * |
msk |
|
) |
| |
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 * |
pub |
|
) |
| |
int pub_size |
( |
pairing_t |
pairing | ) |
|
unsigned char* pubtriple2bytes |
( |
pairing_t |
pairing, |
|
|
PubTriple * |
pub |
|
) |
| |
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 |
|
) |
| |