5.1 pisces.algid - Constants for PKCS #1 AlgorithmIdentifiers

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.

AlgorithmIdentifier ([obj, [params]])
AlgorithmIdentifier is a subclass of pisces.asn1.ASN1Object that represents the AlgorithmIdentifier structure defined by PKCS #1 and #7. In addition to the methods defined by ASN1Object, it has three public attributes: oid, the pisces.asn1.OID of the algorithm, params, the parameters optionally defined for the algorithm, and name, the name of algorithm. params and name may be None.

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}
It can also be called with the algorithm and parameters components as arguments. algorithm must an OID. If parameters is omitted, it is treated as 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