]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - aes256_enc.c
renaming to AVR-Crypto-Lib
[avr-crypto-lib.git] / aes256_enc.c
index 4d89602af816c262e28db0292bad5cef169988ea..017f7ec2271a62ca7ba614abcf15aaa0b4ced03c 100644 (file)
@@ -1,6 +1,6 @@
 /* aes256_enc.c */
 /*
-    This file is part of the Crypto-avr-lib/microcrypt-lib.
+    This file is part of the 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_enc.h"
 
 void aes256_enc(void* buffer, aes256_ctx_t* ctx){
-       aes_cipher_state_t state;
-       aes_buffer2state(state.s, buffer);
-       aes_encrypt_core(&state, (aes_genctx_t*)ctx, 14);
-       aes_buffer2state(buffer, state.s);
+       aes_encrypt_core(buffer, (aes_genctx_t*)ctx, 14);
 }