OID of sha-1

View: New views
2 Messages — Rating Filter:   Alert me  

OID of sha-1

by Alexei-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello!

I am using Crypto++ 5.6.0. When I tried to use predefined OIDs from
OIDS.h my program fails because OID for sha-1 algorithm is specified
as 1.3.14.14.2.26. I googgled for this OID in Internet. A lot of
sources say that OID for this algorithm should be 1.3.14.3.2.26...
Where is the truth? :)

***************************************A piece of
OIDS.h*******************************************************
DEFINE_OID(iso()+3, identified_organization);
        DEFINE_OID(identified_organization()+14, oiw);
                DEFINE_OID(oiw()+14, oiw_secsig);
                        DEFINE_OID(oiw_secsig()+2, oiw_secsig_algorithms);
                                DEFINE_OID(oiw_secsig_algorithms()+26, id_sha1);

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


Re: OID of sha-1

by Wei Dai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I think you're right, since my search says the same. That must be a typo.
Thanks for catching it.

--------------------------------------------------
From: "Alexei" <statujaleha@...>
Sent: Friday, August 28, 2009 2:52 AM
To: "Crypto++ Users" <cryptopp-users@...>
Subject: OID of sha-1

>
> Hello!
>
> I am using Crypto++ 5.6.0. When I tried to use predefined OIDs from
> OIDS.h my program fails because OID for sha-1 algorithm is specified
> as 1.3.14.14.2.26. I googgled for this OID in Internet. A lot of
> sources say that OID for this algorithm should be 1.3.14.3.2.26...
> Where is the truth? :)
>
> ***************************************A piece of
> OIDS.h*******************************************************
> DEFINE_OID(iso()+3, identified_organization);
> DEFINE_OID(identified_organization()+14, oiw);
> DEFINE_OID(oiw()+14, oiw_secsig);
> DEFINE_OID(oiw_secsig()+2, oiw_secsig_algorithms);
> DEFINE_OID(oiw_secsig_algorithms()+26, id_sha1);
>
> >
>

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