X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=aes128_dec.c;h=f3746a76a38b44409e9447ac4884f98939fbeaaa;hb=cccb1d3e008592ad7e4b57653afb95deb4d4a2c5;hp=8f6c49f59e9f9315c3a2ab54c4ac3b364af645b9;hpb=d6a35f05fd2b5ee79d5ad8424434ad1a068be453;p=avr-crypto-lib.git diff --git a/aes128_dec.c b/aes128_dec.c index 8f6c49f..f3746a7 100644 --- a/aes128_dec.c +++ b/aes128_dec.c @@ -1,6 +1,6 @@ /* aes128_dec.c */ /* - This file is part of the Crypto-avr-lib/microcrypt-lib. + This file is part of the AVR-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -29,9 +29,6 @@ #include "aes_dec.h" void aes128_dec(void* buffer, aes128_ctx_t* ctx){ - aes_cipher_state_t state; - aes_buffer2state(state.s, buffer); - aes_decrypt_core(&state, (aes_genctx_t*)ctx, 10); - aes_buffer2state(buffer, state.s); + aes_decrypt_core(buffer, (aes_genctx_t*)ctx, 10); }