RSACipher class.
Macros:
Enumerations:
None.
Typedefs:
None.
Struct CapyRSACipherKey :
Struct CapyRSACipherKey's properties:
Struct CapyRSACipherKey's methods:
None.
Struct CapyRSACipherData :
Struct CapyRSACipherData's properties:
Struct CapyRSACipherData's methods:
None.
Struct CapyRSACipher :
Struct CapyRSACipher's properties:
Keys
Struct CapyRSACipher's methods:
Destructor
Generate keys
Input argument(s):
p: the first prime number to be used for key generation
q: the second prime number to be used for key generation
Output and side effect(s):
'that->keys' is updated.
Cipher a message
Input argument(s):
message: the message to cipher
Output and side effect(s):
Return the ciphered message.
Decipher a message
Input argument(s):
message: the message to decipher
Output and side effect(s):
Return the deciphered message.
Cipher a message divided into blocks of appropriate sizes
Input argument(s):
message: the message to cipher
Output and side effect(s):
Return the ciphered message.
Decipher a message divided into blocks of appropriate sizes
Input argument(s):
message: the message to decipher
Output and side effect(s):
Return the deciphered message.
Functions:
Create a CapyRSACipher
Output and side effect(s):
Return a CapyRSACipher
Allocate memory for a new CapyRSACipher and create it
Output and side effect(s):
Return a CapyRSACipher
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyRSACipher* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyRSACipher to free