]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - aes256_dec.c
new hash function abstraction layer + shavs + dump util + ...
[avr-crypto-lib.git] / aes256_dec.c
index eb809434cccbeb0ddb4adf491266dcbdc026bca0..9bbb016a1714f60a0fef23e1cc636ccdb65b3625 100644 (file)
@@ -1,6 +1,6 @@
 /* aes256_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 aes256_dec(void* buffer, aes256_ctx_t* ctx){
-       aes_cipher_state_t state;
-       aes_buffer2state(state.s, buffer);
-       aes_decrypt_core(&state, (aes_genctx_t*)ctx, 14);
-       aes_buffer2state(buffer, state.s);
+       aes_decrypt_core(buffer, (aes_genctx_t*)ctx, 14);
 }