| Home | Trees | Index | Help |
|
|---|
| Package g4ds :: Package algorithms :: Module rsaalgorithm :: Class AlgorithmImplementation |
|
AlgorithmInterface --+
|
AlgorithmImplementation
| Method Summary | |
|---|---|
Call super constructor and initialise with name. | |
Creates a key pair for the algorithm. | |
String
|
Decrypts the ciphertext. |
String
|
Encrypts the plain text. |
Returns the public part of the key pair. | |
Loads the private key to be used for later decryptions. | |
String
|
Provides a signature for the given message. |
Boolean
|
Verifies, whether the exactly this message has been signed with the corresponding private key for this public key. |
Inherited from AlgorithmInterface:
getName
| |
| Instance Variable Summary | |
|---|---|
String |
_privateKey: Holding the private key in String representation |
Inherited from AlgorithmInterface:
_name
| |
| Method Details |
|---|
__init__(self)
Call super constructor and initialise with name.
|
createKeyPair(self, bitlength=None)Creates a key pair for the algorithm. |
decrypt(self, ciphertext, keyst=None)Decrypts the ciphertext.
|
encrypt(self, plaintext, keyst)Encrypts the plain text.
|
getPublicKey(self, privateKeySt=None)Returns the public part of the key pair. |
setKeyPair(self, key)Loads the private key to be used for later decryptions.
|
signMessage(self, message, keyst=None)Provides a signature for the given message.
|
validate(self, message, signature, keyst)Verifies, whether the exactly this message has been signed with the corresponding private key for this public key.
|
| Instance Variable Details |
|---|
_privateKeyHolding the private key in String representation
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 | http://epydoc.sf.net |