Package sage :: Package crypto :: Module cipher :: Class Cipher
[hide private]
[frames] | no frames]

Class Cipher

source code

                      object --+        
                               |        
structure.sage_object.SageObject --+    
                                   |    
           structure.element.Element --+
                                       |
                                      Cipher
Known Subclasses:
SymmetricKeyCipher, PublicKeyCipher


Cipher class



Instance Methods [hide private]
 
__init__(self, parent, key)
Create a cipher.
source code
 
__eq__(self, right)
x==y
source code
 
__repr__(self)
File: sage/structure/sage_object.pyx (starting at line 86)
source code
 
key(self) source code
 
domain(self) source code
 
codomain(self) source code
 
parent(self)
File: sage/structure/element.pyx (starting at line 370) Returns parent of this element; or, if the optional argument x is supplied, the result of coercing x into the parent of this element.
source code

Inherited from structure.element.Element: __cmp__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __nonzero__, __reduce__, __rxor__, __xor__, _cmp_, _im_gens_, _repr_, _richcmp_, base_base_extend, base_base_extend_canonical_sym, base_extend, base_extend_canonical, base_extend_canonical_sym, base_extend_recursive, base_ring, category, is_zero, n, subs, substitute

Inherited from structure.sage_object.SageObject: _axiom_, _axiom_init_, _gap_, _gap_init_, _gp_, _gp_init_, _interface_, _interface_init_, _interface_is_cached_, _kash_, _kash_init_, _macaulay2_, _macaulay2_init_, _magma_, _magma_init_, _maple_, _maple_init_, _mathematica_, _mathematica_init_, _maxima_, _maxima_init_, _octave_, _octave_init_, _pari_, _pari_init_, _r_init_, _sage_, _singular_, _singular_init_, db, dump, dumps, plot, rename, reset_name, save, version

Inherited from object: __delattr__, __getattribute__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, key)
(Constructor)

source code 

Create a cipher.

INPUT: Parent and key

EXAMPLES: 
    None yet

Overrides: structure.element.Element.__init__

__eq__(self, right)
(Equality operator)

source code 
x==y

Overrides: structure.element.Element.__eq__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
File: sage/structure/sage_object.pyx (starting at line 86)

Overrides: structure.sage_object.SageObject.__repr__
(inherited documentation)

parent(self)

source code 
File: sage/structure/element.pyx (starting at line 370)

Returns parent of this element; or, if the optional argument x is
supplied, the result of coercing x into the parent of this element.

Overrides: structure.element.Element.parent
(inherited documentation)