Hi all,
    I'm trying to implement an ESDH key agreement by means of DigitalNet
S/MIME Freeware Library, which uses Crypto++ as an optional underlying
cryptographic provider (CTIL component).
I'm actually blocked within low-level DH math details, in
DL_GroupParameters_IntegerBased::ValidateElement (gfpcrypt.cpp).
Basically, the test "g < p" fails, since g (the recipient public key), is
1024 bits long while the modulus p is 184 bits. They come from a DH
certificate I built from CertificateBuilder.
Also I see in DL_GroupParameters_IntegerBased::DecodeElement that it's
assumed for the public key to be the same byte count as the modulus. This
could lead the above test to wrong conclusions if they have different
length.
Could anybody explain me such mutual length constraints between
public/private key and p (before I try longer p values) ?
Did anybody succeed in implementing ESDH on top of SFL with Crypto++ ?
Thanks,
                          Renzo Tomaselli
  --------------------------------------------------------------------------
-
  TecnoTP s.n.c. Special Information System Design
  Maso Pelauchi I38050 Ronchi Valsugana,  Trento TN  ITALY
  --------------------------------------------------------------------------
-



Reply via email to