https://github.com/henrycg/earand
Raw File
Tip revision: 362625f3847ddd2e2d5a90cf5f93b4b3ea76e059 authored by Henry Corrigan-Gibbs on 21 May 2018, 19:54:59 UTC
Merge branch 'master' of github.com:henrycg/earand
Tip revision: 362625f
dsa_ea.h
#ifndef _DSA_EA_H
#define _DSA_EA_H

#include "dsa_params.h"
#include "pedersen_proof.h"
#include "util.h"

typedef struct dsa_ea* DsaEa;
typedef const struct dsa_ea* const_DsaEa;

/**
 * Create a new DSA Entropy Authority
 */
DsaEa DsaEa_New(DsaParams params);
void DsaEa_Free(DsaEa ea);

bool DsaEa_SetEntropyRequest(DsaEa ea, const EC_POINT* commit_x);

bool DsaEa_GetEntropyResponse(DsaEa ea, BIGNUM** x_prime);

bool DsaEa_SetCertRequest(DsaEa ea, const_PedersenEvidence ev, X509_REQ* req);

bool DsaEa_GetCertResponse(DsaEa ea, X509** cert);

#endif
back to top