/usr/lib/python2.6/site-packages/rsa
Edit: /usr/lib/python2.6/site-packages/rsa/common.pyc (4235B)
Ñò
Ï€öVc @ sg d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e d j o d d k Z e i ƒ n d S(
s/ Common functionality shared by several modules.c C sÊ | d j o d S| d j o | } n | d @d | } t | ƒ d d h d d 6d d 6d d 6d d 6d
d 6d
d 6d
d
6d
d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6| d S( ss
Number of bits needed to represent a integer excluding any prefix
0 bits.
As per definition from https://wiki.python.org/moin/BitManipulation and
to match the behavior of the Python 3 API.
Usage::
>>> bit_size(1023)
10
>>> bit_size(1024)
11
>>> bit_size(1025)
11
:param num:
Integer value. If num is 0, returns 0. Only the absolute value of the
number is considered. Therefore, signed integers will be abs(num)
before the number's bit length is determined.
:returns:
Returns the number of bits in the integer.
i i s %xi t 0t 1i t 2t 3i t 4t 5t 6t 7t 8t 9t at bt ct dt et f( t len( t numt hex_num( ( s. /usr/lib/python2.6/site-packages/rsa/common.pyt bit_size s
c C s` | d j o t d | ƒ ‚ n | d j o d Sd } x | o | d 7} | d L} q<