[Overview][Constants][Types][Classes][Index] |
Flush the encryption buffer
Source position: blowfish.pp line 73
public procedure TBlowFishEncryptStream.Flush; |
Flush writes the remaining data in the encryption buffer to the destination stream.
For efficiency, data is always written 4 bytes at a time, since this is the amount of bytes required by the Blowfish algorithm. If no multiple of 4 was written to the destination stream, the Flush mechanism can be used to write the remaining bytes.
Flush is called automatically when the stream is destroyed, so there is no need to call it after all data was written and the stream is no longer needed.
|
Write data to the stream |
|
|
Internal blowfish data structure |