[ pycrypto-Bugs-1728610 ] Check result of can_sign() for public keys

"SourceForge.net" <[email protected]> Wed, 30 May 2007 14:39:09 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1728610, was opened at 2007-05-30 14:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1728610&group_id=20937

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Check result of can_sign() for public keys

Initial Comment:
In the case of calling can_sign() applied to a PUBLIC key:

publicKey.can_sign()

its result is True, even though signatures can be performed by private key only.

I've noticed this behaviour for DSA and qNEW algorithms.
However, if I try to sign a message using sign() and the PUBLIC key, the expected error message is issued. So sign() function seems to be fine.

Mail: [email protected]

Thank you

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1728610&group_id=20937

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/