This module implements the AlgorithmIdentifer objects required to implement PKCS #1. It defines one class, AlgorithmIdentifier, and several instances that are used as constants in other modules.
The constructor can be called two ways. It can be called with a single sequence that matches the following ASN.1 defintion:
AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY DEFINED BY algorithm OPTIONAL}
None
.
The module defines the attributes listed in the table below, each of which is an instance of pisces.asn1.OID.
attribute | OID | name |
---|---|---|
oid_dsa | 1.2.840.10040.4.1 | dsa |
oid_dsa_sha1 | 1.2.840.10040.4.3 | dsaWithSha1 |
oid_rsa | 1.2.840.113549.1.1.1 | rsa |
oid_rsa_md2 | 1.2.840.113549.1.1.2 | md2withRSAEncryption |
oid_rsa_md5 | 1.2.840.113549.1.1.4 | md5withRSAEncryption |
oid_md2 | 1.2.840.113549.2.2 | md2 |
oid_md5 | 1.2.840.113549.2.5 | md5 |
oid_sha | 1.3.14.3.2.26 | sha |