X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=a51%2FA5_1.h;fp=a51%2FA5_1.h;h=e1346332eebbc0fa11728673bf0b43d2968cf7e0;hp=4e3e667cd0f0ce2b52acc17a49dc3a21aa32c63d;hb=8d1970350aa1d7cdcb59cf79f7f60e385e2816e5;hpb=a30df60ac814350db243b270034ef188c8d02d5e diff --git a/a51/A5_1.h b/a51/A5_1.h index 4e3e667..e134633 100644 --- a/a51/A5_1.h +++ b/a51/A5_1.h @@ -1,21 +1,21 @@ /* A5_1.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: A5_1.h * Author: Daniel Otte @@ -53,13 +53,13 @@ #define PARITY_LOOKUP 0x96 typedef struct { - /* we are wasting one byte here but this allows a much faster implementation */ - uint8_t r1[3], r2[3], r3[3]; /* the three regs, 19,22,23 bit in length */ + /* we are wasting one byte here but this allows a much faster implementation */ + uint8_t r1[3], r2[3], r3[3]; /* the three regs, 19,22,23 bit in length */ } a5_1_ctx_t; - -void a5_1_init(a5_1_ctx_t *c, void *key, uint8_t keylength_b, void *iv, uint8_t ivlength_b); -uint8_t a5_1_clock(a5_1_ctx_t *c); -uint8_t a5_1_gen(a5_1_ctx_t *c); +void a5_1_init(a5_1_ctx_t *c, void *key, uint8_t keylength_b, void *iv, + uint8_t ivlength_b); +uint8_t a5_1_clock(a5_1_ctx_t *c); +uint8_t a5_1_gen(a5_1_ctx_t *c); #endif