50 assert ( (
len %
sizeof ( *srcl ) ) == 0 );
52 for ( i = 0 ; i < (
len /
sizeof ( *srcl ) ) ; i++ )
95 uint8_t next_cbc_ctx[blocksize];
103 memcpy ( cbc_ctx, next_cbc_ctx, blocksize );
size_t blocksize
Block size.
static void const void void * dst
static void const void * src
void cbc_decrypt(void *ctx, const void *src, void *dst, size_t len, struct cipher_algorithm *raw_cipher, void *cbc_ctx)
Decrypt data.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static void cbc_xor(const void *src, void *dst, size_t len)
XOR data blocks.
#define cipher_encrypt(cipher, ctx, src, dst, len)
void * memcpy(void *dest, const void *src, size_t len) __nonnull
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
struct golan_eq_context ctx
#define cipher_decrypt(cipher, ctx, src, dst, len)
void cbc_encrypt(void *ctx, const void *src, void *dst, size_t len, struct cipher_algorithm *raw_cipher, void *cbc_ctx)
Encrypt data.