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

version» Context lines:

pike.git/lib/modules/Crypto.pmod/DSA.pmod:286:    Sequence( ({ Integer(get_p()),    Integer(get_q()),    Integer(get_g())    }) )    }) );    }          //! Returns the PKCS-1 algorithm identifier for DSA and the provided    //! hash algorithm. Only @[SHA1] supported. -  Sequence pkcs_signature_algorithm_id(.Hash hash) +  object(Sequence)|zero pkcs_signature_algorithm_id(.Hash hash)    {    switch(hash->name())    {    case "sha1":    return Sequence( ({ Standards.PKCS.Identifiers.dsa_sha_id }) );    break;    case "sha224":    return Sequence( ({ Standards.PKCS.Identifiers.dsa_sha224_id }) );    break;    case "sha256":