It seems DL_GroupParameters_IntegerBased::BERDecode()
would fetch generator and order from PKCS-3 -encoded parameters
(according to ftp://ftp.rsasecurity.com/pub/pkcs/ascii/pkcs-3.asc)
in the reverse order.
Namely, pkcs-3 specify generator to follow modulus,
and order to be the last one in the sequence.

Is it a good idea to keep DL_GroupParameters_IntegerBased::BERDecode()
capable parsing pkcs-3 ?

I'd put it like
  BERSequenceDecoder parameters(bt);
    Integer p(parameters);
    Integer g(parameters);
    q = (p-1)/2;
    if (!parameters.EndReached())
      q.BERDecode(parameters);
    parameters.MessageEnd();

Vadym Fedyukovych
http://vf.org.ua/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to