CryptoSys API Library Manual
blfBytesBlock
Encrypt or decrypt a block of data using Blowfish algorithm.
Syntax
[VBA]
Public Function blfBytesBlock ( _
fEncrypt As Integer, _
lpInput() As Byte, _
lpKey() As Byte, _
lpIV() As Byte, _
Optional szMode As String = "ECB" _
) As Byte()
Parameters
- fEncrypt
- ENCRYPT (True) to encrypt, DECRYPT (False) to decrypt
- lpInput
- Input data, length must be an exact multiple of 8.
- lpKey
- Key of length between 1 and 56 bytes (448 bits)
- lpIV
- Initialization vector of exactly 8 bytes
- szMode
- Encryption mode. Select one from:
"ECB" "CBC" "CTR" "OFB" "CFB"
Return Value
Byte(): Output data, the same length as the input, or an empty array on error.