]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - serpent/serpent.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / serpent / serpent.c
index 41dca4bcbd4c5f9effe747d433226ef93b2ba831..894f526f49ef6f7dd0e95831f8c2df5fedbd39de 100644 (file)
@@ -1,7 +1,7 @@
 /* serpent.c */
 /*
     This file is part of the AVR-Crypto-Lib.
-    Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 /* serpent.c
  * a bitsliced implementation of the serpent cipher for avr microcontrollers
  * author: Daniel Otte 
- * email:  daniel.otte@rub.de
+ * email:  bg@nerilex.org
  * license: GPLv3
  */
 
 #include <stdint.h>
 #include <string.h> /* memset() */
 #include <avr/pgmspace.h>
-#include "memxor/memxor.h"
+#include "memxor.h"
 #include "serpent.h"
 #include "serpent-sboxes.h"
 
@@ -82,7 +82,7 @@ static uint32_t serpent_gen_w(uint32_t * b, uint8_t i){
        return ret;
 } 
 
-void serpent_init(const void* key, uint16_t keysize_b, serpent_ctx_t* ctx){
+void serpent_init(const void *key, uint16_t keysize_b, serpent_ctx_t *ctx){
        uint32_t buffer[8];
        uint8_t i,j;
        if(keysize_b<256){
@@ -106,7 +106,7 @@ void serpent_init(const void* key, uint16_t keysize_b, serpent_ctx_t* ctx){
        }
 }
 
-void serpent_enc(void* buffer, const serpent_ctx_t* ctx){
+void serpent_enc(void *buffer, const serpent_ctx_t *ctx){
        uint8_t i;
        for(i=0; i<31; ++i){
                memxor(buffer, ctx->k[i], 16);
@@ -119,7 +119,7 @@ void serpent_enc(void* buffer, const serpent_ctx_t* ctx){
        memxor(buffer, ctx->k[i], 16);
 }
 
-void serpent_dec(void* buffer, const serpent_ctx_t* ctx){
+void serpent_dec(void *buffer, const serpent_ctx_t *ctx){
        int8_t i=32;
        
        memxor(buffer, ctx->k[i], 16);