by Marian Dvorsky [marian at step dot sk] posted on 2004/07/16 |
|
Hello,
In seclib 1.0.13.705, file Security/Certificates/Certificate.cs,
there are two properties:
SupportsDataEncryption and SupportsDigitalSignature. I would left out "this.HasPrivateKey()" from the return statement of both of the properties, since, for example, even if I want only to verify digital signature (so I don't have a private key) I still want to know, whether the certificate supports them (and thus supports their creation and verification).
Instead, I would add 'this.GetIntendedKeyUsage()==0 ||', since there are certificates with this field set to empty which means that their usage is not specified, so they can be used for everything.
Maybe the other key usages could be add as well (for example - probably more important than Data Encryption - SupportsKeyEncryption)
Thanks.
Marian Dvorsky |