51 assert ( (
len %
sizeof ( *srcl ) ) == 0 );
53 for ( i = 0 ; i < (
len /
sizeof ( *srcl ) ) ; i++ )
76 memcpy ( cbc_ctx, dst, blocksize );
96 uint8_t next_cbc_ctx[blocksize];
103 cbc_xor ( cbc_ctx, dst, blocksize );
104 memcpy ( cbc_ctx, next_cbc_ctx, blocksize );
struct golan_eq_context ctx
#define assert(condition)
Assert a condition at run-time.
void cbc_encrypt(void *ctx, const void *src, void *dst, size_t len, struct cipher_algorithm *raw_cipher, void *cbc_ctx)
Encrypt data.
static void cbc_xor(const void *src, void *dst, size_t len)
XOR data blocks.
void cbc_decrypt(void *ctx, const void *src, void *dst, size_t len, struct cipher_algorithm *raw_cipher, void *cbc_ctx)
Decrypt data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define cipher_decrypt(cipher, ctx, src, dst, len)
#define cipher_encrypt(cipher, ctx, src, dst, len)
void * memcpy(void *dest, const void *src, size_t len) __nonnull
size_t blocksize
Block size.