Mon, May 03, 2004 at 12:05:25PM +0200

Try:

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

On Mon, May 03, 2004 at 12:05:25PM +0200, Franz Brandl wrote:
> 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
>  

Reply via email to