News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Little recommendation  
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

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/07/25

You're right; the SupportsDataEncryption and SupportsDigitalSignature methods will be updated in the next version of the library.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.