Repository URL to install this package:
|
Version:
2.5 ▾
|
ó
NtÉ[c @` sË d d l m Z m Z m Z d d l Z d d l Z d d l m Z e j e j d e
f d Y Z e j e j d e
f d Y Z e j e j d e
f d Y Z
e j e j d
e
f d Y Z e j e j d e
f d
Y Z d Z d Z d Z e j e e j e d e
f d Y Z e j e e j e
d e
f d Y Z e j e d e
f d Y Z e j e e j e d e
f d Y Z e j e e j e d e
f d Y Z e j e e j e d e
f d Y Z e j e e j e d e
f d Y Z e j e e j e e j e d e
f d Y Z d S(! i ( t absolute_importt divisiont print_functionN( t utilst Modec B` s, e Z e j d Z e j d Z RS( c C` s d S( s@
A string naming this mode (e.g. "ECB", "CBC").
N( ( t self( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt name s c C` s d S( sq
Checks that all the necessary invariants of this (mode, algorithm)
combination are met.
N( ( R t algorithm( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt validate_for_algorithm s ( t __name__t
__module__t abct abstractpropertyR t abstractmethodR ( ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyR s t ModeWithInitializationVectorc B` s e Z e j d Z RS( c C` s d S( sP
The value of the initialization vector for this mode as bytes.
N( ( R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt initialization_vector s ( R R
R R R ( ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyR s t
ModeWithTweakc B` s e Z e j d Z RS( c C` s d S( s@
The value of the tweak for this mode as bytes.
N( ( R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt tweak) s ( R R
R R R ( ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyR ' s t
ModeWithNoncec B` s e Z e j d Z RS( c C` s d S( s@
The value of the nonce for this mode as bytes.
N( ( R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt nonce2 s ( R R
R R R ( ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyR 0 s t ModeWithAuthenticationTagc B` s e Z e j d Z RS( c C` s d S( sP
The value of the tag supplied to the constructor of this mode.
N( ( R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt tag; s ( R R
R R R ( ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyR 9 s c C` s1 | j d k r- | j d k r- t d n d S( Ni t AESs= Only 128, 192, and 256 bit keys are allowed for this AES mode( t key_sizeR t
ValueError( R R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt _check_aes_key_lengthB s c C` sG t | j d | j k rC t d j t | j | j n d S( Ni s Invalid IV size ({0}) for {1}.( t lenR t
block_sizeR t formatR ( R R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt _check_iv_lengthI s c C` s t | | t | | d S( N( R R ( R R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt _check_iv_and_key_lengthP s
t CBCc B` s, e Z d Z d Z e j d Z e Z RS( R c C` s+ t | t s t d n | | _ d S( Ns# initialization_vector must be bytes( t
isinstancet bytest TypeErrort _initialization_vector( R R ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyt __init__Z s R# ( R R
R R$ R t read_only_propertyR R R ( ( ( sa /home/tvault/.virtenv/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.pyR U s t XTSc B` s/ e Z d Z d Z e j d Z d Z RS( R&