SPA_BlockEncrypter
SPA_BlockEncrypter
spa
1998 12-06
CLASS
SPA_BlockEncrypter - C++ block encrypter
SYNOPSIS
SPA_BlockEncrypter performs encryption and decryption using block
replacement. While it provides some rudimentary encryption
capabilities, it is intended to be extended if more robust encryption
is needed.
CONSTRUCTOR
SPA_BlockEncrypter(const unsigned long k = 0)
Initialize the encrypter with the key k.
MEMBER FUNCTIONS
virtual unsigned GetKey(void) const
Return the encryption key.
virtual GPL_Boolean Encrypt(GPL_Message & message)
Encrypt the message using block replacement. Return TRUE if the
encryption succeeds and FALSE otherwise.
virtual GPL_Boolean Decrypt(GPL_Message & message)
Decrypt the message using block replacement. Return TRUE if the
decryption succeeds and FALSE otherwise.
virtual void SetKey(const unsigned long k)
Set the encryption key to be k.
SEE ALSO
SPA_Encrypter(3)