How do i make a PK_Verifier from a public ECC key ?

9 views
Skip to first unread message

Franz Brandl

unread,
May 3, 2004, 6:10:50 AM5/3/04
to crypto...@eskimo.com
Hi there,
 
might be a stupid question - but how can i make a PK_Verifier from a known ECC public key ?
 
------------------------------------------------------------------------------------------
 
 ECIES<ECP>::Encryptor cpub(cpriv);
 cpub.AccessKey().AccessGroupParameters().SetEncodeAsOID(true);
 cpub.GetKey().DEREncode(bq);
 ECDSA<ECP, SHA>::Verifier spub(bq);
------------------------------------------------------------------------------------------
 
The examples descripe the PK_Verifier constructor to use a ByteQueue which can be made from a Encryptor/Decryptor. The ByteQueue seems to contain a DER encoded structure. Is there a more elegant way as to 'wrap' the 2 key parts in a DER structure manually ? I bet there is ... ;-)
 
Thanks
Franz Brandl

---
Ausgehende Mail ist zertifiziert virenfrei.
Überprüft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.672 / Virendatenbank: 434 - Erstellungsdatum: 28.04.2004

Wei Dai

unread,
May 3, 2004, 2:23:41 PM5/3/04
to crypto...@eskimo.com
Mon, May 03, 2004 at 12:05:25PM +0200

Try:

ECDSA<ECP, SHA>::Verifier spub(cpub.GetKey());

Franz Brandl

unread,
May 3, 2004, 3:33:39 PM5/3/04
to crypto...@eskimo.com
Thanks ... i have an additional question: how do i construct the cpub ? I
dont have a private key which i can supply in the constructor ...

Franz Brandl

-----Ursprüngliche Nachricht-----
Von: Wei Dai [mailto:wei...@weidai.com]
Gesendet: Montag, 03. Mai 2004 20:20
An: crypto...@eskimo.com
Betreff: Re: How do i make a PK_Verifier from a public ECC key ?

Reply all
Reply to author
Forward
0 new messages