X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=arcfour%2Farcfour.h;fp=arcfour%2Farcfour.h;h=e4612cf0167e4258b9e57fb5dd77f2950194e038;hp=d7bb60632c3e1a3db599dfb76074de6183da8b74;hb=8d1970350aa1d7cdcb59cf79f7f60e385e2816e5;hpb=a30df60ac814350db243b270034ef188c8d02d5e diff --git a/arcfour/arcfour.h b/arcfour/arcfour.h index d7bb606..e4612cf 100644 --- a/arcfour/arcfour.h +++ b/arcfour/arcfour.h @@ -1,21 +1,21 @@ /* arcfour.h */ /* - This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + 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 - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ /* * File: arcfour.h * Author: Daniel Otte @@ -38,7 +38,6 @@ * http://www.mozilla.org/projects/security/pki/nss/draft-kaukonen-cipher-arcfour-03.txt */ - #ifndef ARCFOUR_H_ #define ARCFOUR_H_ @@ -59,11 +58,10 @@ * The struct holds the two indices and the S-Box */ typedef struct arcfour_ctx_st { - uint8_t i,j; - uint8_t s[256]; + uint8_t i, j; + uint8_t s[256]; } arcfour_ctx_t; - /** \fn void arcfour_init(const void *key, uint8_t length_B, arcfour_ctx_t *ctx) * \brief setup a context with a key *