![]() While technically speaking generating a signature with the public key constitutes encryption, there are enough differences in how public and private keys are used that it is not surprising that this library doesn’t support explicitly using the private key to encrypt with.You see this in other implementations too. ![]() ![]() This means that 11 bytes (88 bits) of your key are no longer usable for encryption, so keys smaller than this are unusable.KevinBlandy: # AttributeError: 'PublicKey' object has no attribute 'blinded_decryptDon’t try to use a public RSA key to decrypt, and by extension, don’t try to use a private RSA key to encrypt:Is RSA encryption with a private key the same as signature generation?RSA encryption can only be performed with an RSA public key according to the RSA standard.The library you are using already has a (closed) ticket on the same attribute error. I try to use code to describe my purpose import rsaPython-RSA version 3.0 introduced PKCS1-style random padding. Def addtoparams(self, parameters, value): ''' This gets called with the value of our -priv-launch-key if it is specified.I am not very good at English. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |