| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/Crypto/Util/ |
Upload File : |
ó
T:´Nc @ s~ d d l m Z m Z d d l Z d d l Td d d g Z d d
d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿ( t
long_to_bytest
bytes_to_longN( t *t DerObjectt
DerIntegert DerSequencec B sh e Z i e d ƒ d 6e d ƒ d 6e d ƒ d 6Z d d „ Z d „ Z d „ Z d „ Z d
d „ Z RS(
t 0t SEQUENCEs s
BIT STRINGs t INTEGERc C s+ | j j | | ƒ | _ t d ƒ | _ d S( Nt ( t typeTagst gett typeTagt bt payload( t selft ASN1Type( ( s4 /usr/lib/python2.7/dist-packages/Crypto/Util/asn1.pyt __init__ s c C s: | d k r0 t | ƒ } t t | ƒ d ƒ | St | ƒ S( s¡
Return an octet string that is suitable for the BER/DER
length element if the relevant payload is of the given
size (in bytes).
i i€ ( R t bchrt len( R t
payloadLent encoding( ( s4 /usr/lib/python2.7/dist-packages/Crypto/Util/asn1.pyt
_lengthOctets$ s c C s$ | j | j t | j ƒ ƒ | j S( N( R R R R ( R ( ( s4 /usr/lib/python2.7/dist-packages/Crypto/Util/asn1.pyt encode/ s c C s‚ t | | ƒ } | d k r* | | d f St | | d | d | d @!ƒ } | d k rh t d ƒ ‚ n | | d | d @f Sd S( s£
Given a string and an index to a DER LV,
this function returns a tuple with the length of V
and an index to the first byte of it.
i i s Not a DER length tag.N( t bordR t
ValueError( R t idxt strt lengtht
payloadLength( ( s4 /usr/lib/python2.7/dist-packages/Crypto/Util/asn1.pyt
_decodeLen2 s #i c C s¸ y | d | _ t | j ƒ d @d k r8 t d ƒ ‚ n | j d | ƒ \ } } | r{ t | ƒ | | k r{ t d ƒ ‚ n | | | | !| _ Wn t k
r¯ t d ƒ ‚ n X| | S( Ni i s Unsupported DER tagi s Not a DER structures Not a valid DER SEQUENCE.( R R R R R R t
IndexError( R t inputt noLeftOversR R ( ( s4 /usr/lib/python2.7/dist-packages/Crypto/Util/asn1.pyt decodeA s
N(
t __name__t
__module__R
R
t NoneR R R R R"