GCRY_CIPHER_MODE_NONE
GCRY_CIPHER_MODE_ECB
GCRY_CIPHER_MODE_CFB
GCRY_CIPHER_MODE_CBC
GCRY_CIPHER_MODE_STREAM
GCRY_CIPHER_MODE_OFB
GCRY_CIPHER_MODE_CTR
GCRY_CIPHER_MODE_AESWRAP
gcry_cipher_setiv
has not been used the
standard IV is used; if it has been used the lower 64 bit of the IV
are used as the Alternative Initial Value. On encryption the provided
output buffer must be 64 bit (8 byte) larger than the input buffer;
in-place encryption is still allowed. On decryption the output buffer
may be specified 64 bit (8 byte) shorter than then input buffer. As
per specs the input length must be at least 128 bits and the length
must be a multiple of 64 bits.