50 assert ( (
len %
sizeof ( *srcl ) ) == 0 );
52 for ( i = 0 ; i < (
len /
sizeof ( *srcl ) ) ; i++ )
75 memcpy ( cbc_ctx, dst, blocksize );
95 uint8_t next_cbc_ctx[blocksize];
102 cbc_xor ( cbc_ctx, dst, blocksize );
103 memcpy ( cbc_ctx, next_cbc_ctx, blocksize );
size_t blocksize
Block size.
struct golan_eq_context ctx
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)
#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.