encryption algorithm enumeration
dmCrypt::ALGORITHM_XTEA -
result enumeration
dmCrypt::RESULT_OK - = 0
dmCrypt::RESULT_ERROR - = 1
Encrypt data in place
algo - algorithm
data - data
datalen - data length in bytes
key - key
keylen - key length
result - the encryption result
Decrypt data in place
algo - algorithm
data - data
datalen - data length in bytes
key - key
keylen - key length
result - the decryption result
Hash buffer using SHA1
buf - The source data to hash
buflen - The length of source data in bytes
digest - The destination buffer (20 bytes)
Hash buffer using SHA256
buf - The source data to hash
buflen - key The length of source data in bytes
digest - The destination buffer (32 bytes)
Hash buffer using SHA512
buf - The source data to hash
buflen - key The length of source data in bytes
digest - The destination buffer (64 bytes)
Hash buffer using MD5
buf - The source data to hash
buflen - key The length of source data in bytes
digest - The destination buffer (16 bytes)
Base64 encode a buffer
src - The source data to encode
src_len - key The length of source data in bytes
dst - The destination buffer
dst_len[in,out] - In: The length of the destination in bytes. Out: The length of the encoded string.
success - true if the encoding went ok
Base64 decode a buffer
src - The source data to encode
src_len - key The length of source data in bytes
dst - The destination buffer
dst_len[in,out] - In: The length of the destination in bytes. Out: The length of the decoded string.
success - true if the decoding went ok