AcquireEntropyInfo • DestroyEntropyInfo • GetEntropyChaos • IncreaseEntropy • RestoreEntropy
AcquireEntropyInfo
AcquireEntropyInfo() allocates the EntropyInfo structure.
The format of the AcquireEntropyInfo method is:
EntropyInfo *AcquireEntropyInfo(const EntropyType entropy, const size_t level)
A description of each parameter follows:
- entropy
- The entropy type.
- level
- entropy level: 1 is best speed, 9 is more entropy.
DestroyEntropyInfo
DestroyEntropyInfo() zeros memory associated with the EntropyInfo structure.
The format of the DestroyEntropyInfo method is:
EntropyInfo *DestroyEntropyInfo(EntropyInfo *entropy_info)
A description of each parameter follows:
- entropy_info
- The entropy info.
GetEntropyChaos
GetEntropyChaos() returns Entropy chaos.
The format of the GetEntropyChaos method is:
const StringInfo *GetEntropyChaos(const EntropyInfo *entropy_info)
A description of each parameter follows:
- entropy_info
- The entropy info.
IncreaseEntropy
IncreaseEntropy() increases the entropy of a message.
The format of the IncreaseEntropy method is:
WizardBooleanType IncreaseEntropy(EntropyInfo *entropy_info, const StringInfo *message,ExceptionInfo *exception)
A description of each parameter follows:
- entropy_info
- The address of a structure of type EntropyInfo.
- message
- The message.
- exception
- Return any errors or warnings in this structure.
RestoreEntropy
RestoreEntropy() restores the messages to its original entropy.
The format of the RestoreEntropy method is:
unsigned ing RestoreEntropy(EntropyInfo *entropy_info, const size_t length,const StringInfo *message,ExceptionInfo *exception)
A description of each parameter follows:
- entropy_info
- The address of a structure of type EntropyInfo.
- length
- The the total size of the destination buffer, which must be large enough to hold the entire uncompressed data.
- message
- The message.
- exception
- Return any errors or warnings in this structure.