Lines 43-49
public:
Link Here
|
43 |
void Initialize(const EllipticCurve &ec, const Point &G, const Integer &n, const Integer &k = Integer::Zero()) |
43 |
void Initialize(const EllipticCurve &ec, const Point &G, const Integer &n, const Integer &k = Integer::Zero()) |
44 |
{ |
44 |
{ |
45 |
this->m_groupPrecomputation.SetCurve(ec); |
45 |
this->m_groupPrecomputation.SetCurve(ec); |
46 |
SetSubgroupGenerator(G); |
46 |
this->SetSubgroupGenerator(G); |
47 |
m_n = n; |
47 |
m_n = n; |
48 |
m_k = k; |
48 |
m_k = k; |
49 |
} |
49 |
} |
Lines 145-153
public:
Link Here
|
145 |
typedef typename EC::Point Element; |
145 |
typedef typename EC::Point Element; |
146 |
|
146 |
|
147 |
void Initialize(const DL_GroupParameters_EC<EC> ¶ms, const Element &Q) |
147 |
void Initialize(const DL_GroupParameters_EC<EC> ¶ms, const Element &Q) |
148 |
{this->AccessGroupParameters() = params; SetPublicElement(Q);} |
148 |
{this->AccessGroupParameters() = params; this->SetPublicElement(Q);} |
149 |
void Initialize(const EC &ec, const Element &G, const Integer &n, const Element &Q) |
149 |
void Initialize(const EC &ec, const Element &G, const Integer &n, const Element &Q) |
150 |
{this->AccessGroupParameters().Initialize(ec, G, n); SetPublicElement(Q);} |
150 |
{this->AccessGroupParameters().Initialize(ec, G, n); this->SetPublicElement(Q);} |
151 |
|
151 |
|
152 |
// X509PublicKey |
152 |
// X509PublicKey |
153 |
void BERDecodePublicKey(BufferedTransformation &bt, bool parametersPresent, size_t size); |
153 |
void BERDecodePublicKey(BufferedTransformation &bt, bool parametersPresent, size_t size); |
Lines 166-174
public:
Link Here
|
166 |
void Initialize(const EC &ec, const Element &G, const Integer &n, const Integer &x) |
166 |
void Initialize(const EC &ec, const Element &G, const Integer &n, const Integer &x) |
167 |
{this->AccessGroupParameters().Initialize(ec, G, n); this->SetPrivateExponent(x);} |
167 |
{this->AccessGroupParameters().Initialize(ec, G, n); this->SetPrivateExponent(x);} |
168 |
void Initialize(RandomNumberGenerator &rng, const DL_GroupParameters_EC<EC> ¶ms) |
168 |
void Initialize(RandomNumberGenerator &rng, const DL_GroupParameters_EC<EC> ¶ms) |
169 |
{GenerateRandom(rng, params);} |
169 |
{this->GenerateRandom(rng, params);} |
170 |
void Initialize(RandomNumberGenerator &rng, const EC &ec, const Element &G, const Integer &n) |
170 |
void Initialize(RandomNumberGenerator &rng, const EC &ec, const Element &G, const Integer &n) |
171 |
{GenerateRandom(rng, DL_GroupParameters_EC<EC>(ec, G, n));} |
171 |
{this->GenerateRandom(rng, DL_GroupParameters_EC<EC>(ec, G, n));} |
172 |
|
172 |
|
173 |
// PKCS8PrivateKey |
173 |
// PKCS8PrivateKey |
174 |
void BERDecodePrivateKey(BufferedTransformation &bt, bool parametersPresent, size_t size); |
174 |
void BERDecodePrivateKey(BufferedTransformation &bt, bool parametersPresent, size_t size); |