]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - bcal/bcal-cbc.c
optimization of reduce for small delta
[avr-crypto-lib.git] / bcal / bcal-cbc.c
index 99e91aec1b051bfd6d62d904bb2b8fb3be922eea..c5ff9d6f801e8f0500798861a7a18c8050971f39 100644 (file)
 #include <string.h>
 #include "bcal-cbc.h"
 #include "bcal-basic.h"
-#include "memxor/memxor.h"
+#include "memxor.h"
 
 uint8_t bcal_cbc_init(const bcdesc_t* desc, const void* key, uint16_t keysize_b, bcal_cbc_ctx_t* ctx){
        ctx->desc = (bcdesc_t*)desc;
        ctx->blocksize_B = (bcal_cipher_getBlocksize_b(desc)+7)/8;
        ctx->prev_block = malloc(ctx->blocksize_B);
 
-       if(ctx->prev_block==NULL){
+       if(ctx->prev_block == NULL){
                return 0x11;
        }
        return bcal_cipher_init(desc, key, keysize_b, &(ctx->cctx));