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. |
isUntrusted(obj)
Checks whether the passed in object is an untrusted object. Returns
True in case it is, otherwise False.
-
|
__date__
-
- Type:
-
str
- Value:
|
__version__
-
- Type:
-
str
- Value:
|
CIPHER_AES
-
- Type:
-
int
- Value:
|
CIPHER_ARC2
-
- Type:
-
int
- Value:
|
CIPHER_ARC4
-
- Type:
-
int
- Value:
|
CIPHER_BLOWFISH
-
- Type:
-
int
- Value:
|
CIPHER_CAST
-
- Type:
-
int
- Value:
|
CIPHER_DES3
-
- Type:
-
int
- Value:
|
HASH_MD2
-
- Type:
-
int
- Value:
|
HASH_MD4
-
- Type:
-
int
- Value:
|
HASH_MD5
-
- Type:
-
int
- Value:
|
HASH_NONE
-
- Type:
-
int
- Value:
|
HASH_SHA
-
- Type:
-
int
- Value:
|
HASHALGO
-
- Type:
-
int
- Value:
|
HAVE_AES
-
- Type:
-
bool
- Value:
|
HAVE_ARC2
-
- Type:
-
bool
- Value:
|
HAVE_ARC4
-
- Type:
-
bool
- Value:
|
HAVE_BLOWFISH
-
- Type:
-
bool
- Value:
|
HAVE_CAST
-
- Type:
-
bool
- Value:
|
HAVE_DES3
-
- Type:
-
bool
- Value:
|
HAVE_DSA
-
- Type:
-
bool
- Value:
|
HAVE_ELGAMAL
-
- Type:
-
bool
- Value:
|
HAVE_IDEA
-
- Type:
-
bool
- Value:
|
HAVE_MD2
-
- Type:
-
bool
- Value:
|
HAVE_MD4
-
- Type:
-
bool
- Value:
|
HAVE_MD5
-
- Type:
-
bool
- Value:
|
HAVE_QNEW
-
- Type:
-
bool
- Value:
|
HAVE_RC5
-
- Type:
-
bool
- Value:
|
HAVE_RIPEMD
-
- Type:
-
bool
- Value:
|
HAVE_RSA
-
- Type:
-
bool
- Value:
|
HAVE_SHA
-
- Type:
-
bool
- Value:
|
LOAD_INSECURE_CIPHER_ALGOS
-
- Type:
-
int
- Value:
|
MODE_CBC
-
- Type:
-
int
- Value:
|
MODE_CFB
-
- Type:
-
int
- Value:
|
MODE_CTR
-
- Type:
-
int
- Value:
|
MODE_ECB
-
- Type:
-
int
- Value:
|
MODE_NONE
-
- Type:
-
int
- Value:
|
MODE_OFB
-
- Type:
-
int
- Value:
|
MODE_PGP
-
- Type:
-
int
- Value:
|
PRIVKEYDATA
-
- Type:
-
int
- Value:
|
PUBKEYDATA
-
- Type:
-
int
- Value:
|
PUBLICKEY_DSA
-
- Type:
-
int
- Value:
|
PUBLICKEY_ELGAMAL
-
- Type:
-
int
- Value:
|
PUBLICKEY_QNEW
-
- Type:
-
int
- Value:
|
PUBLICKEY_RSA
-
- Type:
-
int
- Value:
|
randpool
-
- Type:
-
PersistentRandomPool
- Value:
<Crypto.Util.randpool.PersistentRandomPool instance at 0x402703ec>
|
|
RANDPOOL_FILE_LOCATION
-
- Type:
-
str
- Value:
|
SIGNDATA
-
- Type:
-
int
- Value:
|
WARN_ABOUT_UNTRUSTED_KEY_ARGUMENTS
-
- Type:
-
int
- Value:
|