![]() The issue occurs on a computer that is running a version of Windows or Windows Server that is listed in the “Applies to” section. _revision_ = '$Id: RSA.py,v 1.This article contains recommendations to help an administrator determine the cause of potential instability in the following scenario: Random data and 'progress_func', if present, to display Generate an RSA key of length 'bits', using 'randfunc' to get generate = generate_c(bits, randfunc, progress_func =None) generate_c(bits, randfunc, progress_func =None) generate_py = generate(bits, randfunc, progress_func =None) generate(bits:int, randfunc:callable, progress_func:callable) Object = class RSAobj( )Ĭonstruct = construct_c(tuple) construct_c(tuple) construct_py = construct(tuple) construct(tuple:(long,) : RSAobjĬonstruct an RSA object from a 2-, 3-, 5-, or 6-tuple of numbers. _str_() str(x) _unicode_(.)ĭata descriptors inherited from exceptions.BaseException: Use of negative indices is not supported. _delattr_('name') del x.name _getattribute_(.) x. Methods inherited from exceptions.BaseException: _init_(.) initializes x see help(type(x)) for signatureĭata and other attributes inherited from exceptions.Exception: Methods inherited from exceptions.Exception: _weakref_ list of weak references to the object (if defined) Method resolution order: error exceptions.Exception exceptions.BaseException _builtin_.object blind(self, M, B) blind(M : string|long, B : string|long) : string|long _ne_(self, other) _ne_(other): 0, 1Ĭompare us to other for inequality. _getattr_(self, attr) _getstate_(self) _init_(self, key) _setstate_(self, state) can_blind(self) has_private(self) publickey(self) size(self)Ĭompare us to other for equality. Returns true if the signature checks out.Ĭlass RSAobj_c( ) Verify that the signature is valid for the message M validate(self, M, signature) # alias to compensate for the old validate() name verify(self, M, signature) verify(M:string|long, signature:tuple) : bool Unblind message M using blinding factor B. unblind(self, M, B) unblind(M : string|long, B : string|long) : string|long K is a random parameter required by some algorithms. Return a tuple containing the signature for the message M. sign(self, M, K) sign(M : string|long, K:string|long) : tuple encrypt(self, plaintext, K) encrypt(plaintext:string|long, K:string|long) : tupleĮncrypt the string or integer plaintext. To generate a signature.) decrypt(self, ciphertext) decrypt(ciphertext:tuple|string|long): stringĭecrypt 'ciphertext' using this key. To decrypt a message.) can_sign(self) can_sign() : bool can_encrypt(self) can_encrypt() : boolĮncrypt data. blind(self, M, B) blind(M : string|long, B : string|long) : string|longīlind message M using blinding factor B. Number representation being used, whether that is Python long _setstate_(self, d) On unpickling a key object, the key data is converted to the big It will then be reconverted as necessary on _getstate_(self) To keep key objects platform-independent, the key data isĬonverted to standard Python long integers before being Methods inherited from :Ĭompare us to other for equality. Return the maximum number of bits that can be handled by this key. Return a new key object containing only the public key information. Return a Boolean denoting whether the object contains To blind a message.) has_private(self) has_private() : bool Particular key object has the private information required to Return a Boolean value recording whether this algorithm canīlind data. # or implied. Use at your own risk or not at all.Ĭ RSAobj RSAobj RSAobj_c exceptions.Exception( exceptions.BaseException)Ĭlass RSAobj( ) # warranty of fitness for use or suitability for any purpose, express This software is provided "as is" without # dissemination and usage except those imposed by the laws of your # Distribute and use freely there are no restrictions on further # Part of the Python Cryptography Toolkit usr/local/google/home/afshar/src/external-gdata-release/google3/src/gdata/Crypto/PublicKey/RSA.py
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |