![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
AcquireCipherInfo() allocates the CipherInfo structure. The format of the AcquireCipherInfo method is:
CipherInfo *AcquireCipherInfo(const CipherType cipher,
const CipherMode mode)
A description of each parameter follows: cipherThe cipher type. modeThe cipher mode. DecipherCipher() deciphers ciphertext and returns plaintext. The deciphering is performed in-place and DecipherCipher() returns a pointer to the ciphertext string. The format of the DecipherCipher method is:
StringInfo *DecipherCipher(CipherInfo *cipher_info,StringInfo *ciphertext)
A description of each parameter follows: cipher_infoThe cipher context. ciphertextThe cipher text. DestroyCipherInfo() zeros memory associated with the CipherInfo structure. The format of the DestroyCipherInfo method is: CipherInfo *DestroyCipherInfo(CipherInfo *cipher_info) A description of each parameter follows: cipher_infoThe cipher info. EncipherCipher() enciphers plaintext and returns ciphertext. The enciphering is performed in-place and EncipherCipher() returns a pointer to the plaintext string. The format of the EncipherCipher method is:
StringInfo *EncipherCipher(CipherInfo *cipher_info,StringInfo *plaintext)
A description of each parameter follows: cipher_infoThe cipher context. plaintextThe plain text. GetCipherBlocksize() returns the cipher blocksize. The format of the GetCipherBlocksize method is: unsigned long *GetCipherBlocksize(const CipherInfo *cipher_info) A description of each parameter follows: cipher_infoThe cipher info. GenerateCipherNonce() generate a nonce for the given cipher. The format of the GenerateCipherNonce method is:
StringInfo *GenerateCipherNonce(CipherInfo *cipher_info)
A description of each parameter follows: cipher_infoThe cipher context. GetCipherNonce() returns a nonce of the cipher. The format of the GetCipherNonce method is:
const StringInfo *GetCipherNonce(CipherInfo *cipher_info)
A description of each parameter follows: cipher_infoThe cipher context. ResetCipherNonce() resets the initialization vector for the cipher. The format of the ResetCipherNonce method is: ResetCipherNonce(CipherInfo *cipher_info) A description of each parameter follows: cipher_infoThe cipher context. SetCipherNonce() sets the initialization vector for the cipher. The format of the SetCipherNonce method is: SetCipherNonce(CipherInfo *cipher_info,const StringInfo *nonce) A description of each parameter follows: cipher_infoThe cipher context. nonceThe initialization vector. SetCipherKey() sets the key for the cipher. The key length is specified in bits. Valid values are 128, 192, or 256. The format of the SetCipherKey method is: SetCipherKey(CipherInfo *cipher_info,const StringInfo *key) A description of each parameter follows: cipher_infoThe cipher context. keyThe key. |