Trees | Index | Help |
---|
Package yawPyCrypto ::
Module AdvKey ::
Class AsciiKey |
|
object
--+ |IFlatten
--+ |object
--+ | | |AlgoDefinitions
--+ |Key
--+ | AsciiKey
Method Summary | |
---|---|
Create a new key. (inherited from Key )
| |
Compares two keys. (inherited from Key )
| |
Deletes the specified key argument from this key. (inherited from Key )
| |
Loads the key attribute name from the current key object, and unserializes it. (inherited from Key )
| |
Returns a hash value of a key instance. (inherited from Key )
| |
Return an iterator over all names of key arguments. (inherited from Key )
| |
a new object with type S, a subtype of T |
|
Sets the passed in keyword argument called name to the value that is passed in along. (inherited from Key )
| |
Returns a boolean whether this key can decrypt data. (inherited from Key )
| |
Returns a boolean whether this key can encrypt data. (inherited from Key )
| |
Returns a boolean whether this key can sign data. (inherited from Key )
| |
Returns a boolean whether this key can verify signed data. (inherited from Key )
| |
Returns the maximum string length of data which can be encrypted or signed. (inherited from Key )
| |
Decrypt string data as passed in using data. (inherited from Key )
| |
Encrypt string data as passed in using data. (inherited from Key )
| |
Checks whether this key has a private key part. (inherited from Key )
| |
Checks whether this key has a public key part. (inherited from Key )
| |
Returns the key's keysize in bits. (inherited from Key )
| |
Returns a new key object which contains only the public key associated with the current key, and only public key arguments. (inherited from Key )
| |
Create a new signature for the data that is passed in. (inherited from Key )
| |
Stores a key to a string of bytes. (inherited from Key )
| |
Stores only the public key of this key to a string of bytes. (inherited from Key )
| |
Dictionary style updating for a Key instance. (inherited from Key )
| |
Verify the signature of the passed in string. (inherited from Key )
| |
Unwrapping function for unwrapping key data and encryption/signature packets from ascii-armored representation as returned by _asciiWrap(). | |
Wrapping function for wrapping key data and encryption/signature packets in ascii-armor (base64 encoded). | |
_IFlatten__serialize(self,
*args,
**kwargs)
(inherited from IFlatten )
| |
_IFlatten__unserialize(self,
*args,
**kwargs)
(inherited from IFlatten )
| |
Function which is called to check whether the current key argument should be treated as a private key argument (and as such is stored only on a call to storeKey()). (inherited from Key )
| |
Function used to create a new key for this Key object. (inherited from Key )
| |
Decrypt the passed in PyCrypto output of encryption, and return the decrypted string. (inherited from Key )
| |
Encrypt data as passed in, and return the PyCrypto output of the encrypted data. (inherited from Key )
| |
Function used to get an encryption prime as required by the El Gamal public key encryption algorithm. (inherited from Key )
| |
Returns the yawPyCrypto ID of the current key object. (inherited from Key )
| |
Function called by the Flatten serialization library to serialize a key instance. (inherited from Key )
| |
Function that returns a PyCrypto signature for the data that is passed in. (inherited from Key )
| |
Function called by the Flatten serialization library to unserialize a key instance from the dictionary passed in as serstate. (inherited from Key )
| |
Function that verifies a PyCrypto signature for the data that is passed in. (inherited from Key )
|
Class Variable Summary | |
---|---|
str |
_headend
|
str |
_headstart
|
str |
_headtypeenc
|
str |
_headtypeend
|
str |
_headtypekey
|
str |
_headtypesign
|
list |
_unwrappers
|
list |
_wrappers
|
Method Details |
---|
__new__(S, ...)
|
_asciiUnwrap(selfcls, data, datatype, *args, **kwargs)Unwrapping function for unwrapping key data and encryption/signature packets from ascii-armored representation as returned by _asciiWrap(). The data it is passed must not necessarily be exactly the same, the yawPyCrypto data block is searched, and only relevant data is returned. The Version: and Generated: headers of _asciiWrap() are silently ignored. |
_asciiWrap(selfcls, data, datatype, *args, **kwargs)Wrapping function for wrapping key data and encryption/signature packets in ascii-armor (base64 encoded). The function is called by __wrap() and __unwrap(). It returns data in a format similar to the following: --- yawPyCrypto <name> packet --- Version: <yawPyCrypto creation version> Generated: <time packet was generated> <data encoded in base64> --- yawPyCrypto packet end --- The function should never need to be called directly. |
Class Variable Details |
---|
_headend
|
_headstart
|
_headtypeenc
|
_headtypeend
|
_headtypekey
|
_headtypesign
|
_unwrappers
|
_wrappers
|
Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Aug 17 03:32:33 2003 | http://epydoc.sf.net |