pike.git / lib / modules / Crypto.pmod / DSA.pmod

version» Context lines:

pike.git/lib/modules/Crypto.pmod/DSA.pmod:270:          //    // --- PKCS methods    //      #define Sequence Standards.ASN1.Types.Sequence   #define Integer Standards.ASN1.Types.Integer   #define BitString Standards.ASN1.Types.BitString    -  //! Returns the AlgorithmIdentifier as defined in @rfc{5280@} -  //! section 4.1.1.2 including the DSA parameters. +  //! Returns the AlgorithmIdentifier as defined in +  //! @rfc{5280:4.1.1.2@} including the DSA parameters.    Sequence pkcs_algorithm_identifier()    {    return    Sequence( ({ Standards.PKCS.Identifiers.dsa_id,    Sequence( ({ Integer(get_p()),    Integer(get_q()),    Integer(get_g())    }) )    }) );    }
pike.git/lib/modules/Crypto.pmod/DSA.pmod:304:    return Sequence( ({ Standards.PKCS.Identifiers.dsa_sha224_id }) );    break;    case "sha256":    return Sequence( ({ Standards.PKCS.Identifiers.dsa_sha256_id }) );    break;    }    return 0;    }       //! Creates a SubjectPublicKeyInfo ASN.1 sequence for the object. -  //! See @rfc{5280@} section 4.1.2.7. +  //! See @rfc{5280:4.1.2.7@}.    Sequence pkcs_public_key()    {    return Sequence(({    pkcs_algorithm_identifier(),    BitString(Integer(get_y())->get_der()),    }));    }      #undef BitString   #undef Integer