Package yawPyCrypto :: Module Key
[show private | hide private]
[frames | no frames]

Module yawPyCrypto.Key

Key.py

Key

Main class which wraps the PyCrypto public key functionality into an easier to use interface. This class is able to deal with all public key algorithms supported by PyCrypto.

The class does more than wrap PyCrypto keys, though. It offers support for key arguments (basically an instance of the Key class supports dictionary style assignments), which are stored along with the key, signed by it if the key has a private key. The values, which can be stored as key arguments, can be any instance which is serializable by the Flatten library.

Copyright

yawPyCrypto is copyright (C) 2002-3 by Heiko Wundram <heiko@asta.uni-saarland.de>.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library in the file "COPYLEFT"; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Classes
Key This class is the main entrypoint for working with public key algorithms from yawPyCrypto.
Untrusted This class is a wrapper around untrusted key arguments.

Function Summary
  isUntrusted(obj)
Checks whether the passed in object is an untrusted object.

Variable Summary
str __date__
str __version__
int CIPHER_AES
int CIPHER_ARC2
int CIPHER_ARC4
int CIPHER_BLOWFISH
int CIPHER_CAST
int CIPHER_DES3
int ENCDATA
int HASH_MD2
int HASH_MD4
int HASH_MD5
int HASH_NONE
int HASH_SHA
int HASHALGO
bool HAVE_AES
bool HAVE_ARC2
bool HAVE_ARC4
bool HAVE_BLOWFISH
bool HAVE_CAST
bool HAVE_DES3
bool HAVE_DSA
bool HAVE_ELGAMAL
bool HAVE_IDEA
bool HAVE_MD2
bool HAVE_MD4
bool HAVE_MD5
bool HAVE_QNEW
bool HAVE_RC5
bool HAVE_RIPEMD
bool HAVE_RSA
bool HAVE_SHA
int LOAD_INSECURE_CIPHER_ALGOS
int MODE_CBC
int MODE_CFB
int MODE_CTR
int MODE_ECB
int MODE_NONE
int MODE_OFB
int MODE_PGP
int PRIVKEYDATA
int PUBKEYDATA
int PUBLICKEY_DSA
int PUBLICKEY_ELGAMAL
int PUBLICKEY_QNEW
int PUBLICKEY_RSA
PersistentRandomPool randpool
str RANDPOOL_FILE_LOCATION
int SIGNDATA
int WARN_ABOUT_UNTRUSTED_KEY_ARGUMENTS

Function Details

isUntrusted(obj)

Checks whether the passed in object is an untrusted object. Returns True in case it is, otherwise False.

Variable Details

__date__

Type:
str
Value:
'2003/08/16'                                                           

__version__

Type:
str
Value:
'0.1p13'                                                               

CIPHER_AES

Type:
int
Value:
0                                                                      

CIPHER_ARC2

Type:
int
Value:
1                                                                      

CIPHER_ARC4

Type:
int
Value:
2                                                                      

CIPHER_BLOWFISH

Type:
int
Value:
3                                                                      

CIPHER_CAST

Type:
int
Value:
4                                                                      

CIPHER_DES3

Type:
int
Value:
6                                                                      

ENCDATA

Type:
int
Value:
2                                                                      

HASH_MD2

Type:
int
Value:
1                                                                      

HASH_MD4

Type:
int
Value:
2                                                                      

HASH_MD5

Type:
int
Value:
3                                                                      

HASH_NONE

Type:
int
Value:
0                                                                      

HASH_SHA

Type:
int
Value:
5                                                                      

HASHALGO

Type:
int
Value:
5                                                                      

HAVE_AES

Type:
bool
Value:
True                                                                   

HAVE_ARC2

Type:
bool
Value:
True                                                                   

HAVE_ARC4

Type:
bool
Value:
True                                                                   

HAVE_BLOWFISH

Type:
bool
Value:
True                                                                   

HAVE_CAST

Type:
bool
Value:
True                                                                   

HAVE_DES3

Type:
bool
Value:
True                                                                   

HAVE_DSA

Type:
bool
Value:
True                                                                   

HAVE_ELGAMAL

Type:
bool
Value:
True                                                                   

HAVE_IDEA

Type:
bool
Value:
False                                                                  

HAVE_MD2

Type:
bool
Value:
True                                                                   

HAVE_MD4

Type:
bool
Value:
True                                                                   

HAVE_MD5

Type:
bool
Value:
True                                                                   

HAVE_QNEW

Type:
bool
Value:
True                                                                   

HAVE_RC5

Type:
bool
Value:
False                                                                  

HAVE_RIPEMD

Type:
bool
Value:
False                                                                  

HAVE_RSA

Type:
bool
Value:
True                                                                   

HAVE_SHA

Type:
bool
Value:
True                                                                   

LOAD_INSECURE_CIPHER_ALGOS

Type:
int
Value:
0                                                                      

MODE_CBC

Type:
int
Value:
1                                                                      

MODE_CFB

Type:
int
Value:
2                                                                      

MODE_CTR

Type:
int
Value:
3                                                                      

MODE_ECB

Type:
int
Value:
4                                                                      

MODE_NONE

Type:
int
Value:
0                                                                      

MODE_OFB

Type:
int
Value:
5                                                                      

MODE_PGP

Type:
int
Value:
6                                                                      

PRIVKEYDATA

Type:
int
Value:
0                                                                      

PUBKEYDATA

Type:
int
Value:
1                                                                      

PUBLICKEY_DSA

Type:
int
Value:
0                                                                      

PUBLICKEY_ELGAMAL

Type:
int
Value:
1                                                                      

PUBLICKEY_QNEW

Type:
int
Value:
2                                                                      

PUBLICKEY_RSA

Type:
int
Value:
3                                                                      

randpool

Type:
PersistentRandomPool
Value:
<Crypto.Util.randpool.PersistentRandomPool instance at 0x402703ec>     

RANDPOOL_FILE_LOCATION

Type:
str
Value:
'~/.yawpycrypto.rnd'                                                   

SIGNDATA

Type:
int
Value:
3                                                                      

WARN_ABOUT_UNTRUSTED_KEY_ARGUMENTS

Type:
int
Value:
2                                                                      

Generated by Epydoc 1.1 on Sun Aug 17 03:32:32 2003 http://epydoc.sf.net