Hello Everyone,
For Public Key Objects (defined in the ANSI X.9.62 standards)
CK_BYTE ecParams [ ]
Parameters : : = CHOICE {
ecParameters ECParameters,
namedCurve CURVES.&id({CurveNames}),
implicitlyCA NULL
}
ECParameters : : = SEQUENCE {
version INTEGER {ecpVer1(1)} (ecpVer1),
fieldID FieldID {{FieldTypes}},
curve Curve,
base ECPoint,
order INTEGER,
cofactor INTEGER OPTIONAL,
. . .
}
ECPoint : : = OCTET STRING
order --> order "n" of the base point
cofactor --> integer "h"
Curve : : = SEQUENCE {
a FieldElement,
b FieldElement,
seed BIT STRING OPTIONAL
}
CK_BYTE ecPoint [ ]
ecPoint : : = OCTET STRING
** This is the structure of the DER encoded byte stream conforming to
the ASN.1 notation.
My question (stupid maybe) is how to DER decode this byte stream to
extract its individual parts? like to determine the fieldElement "a"
and "b"?
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---