X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=camellia.h;h=760961366dcb2a9af80091f10b74f13371f0d784;hb=cccb1d3e008592ad7e4b57653afb95deb4d4a2c5;hp=6ced2b2114f672559c1ae3516869ae271506ea93;hpb=38806fc75038026e167a26eff90b6111066a3642;p=avr-crypto-lib.git diff --git a/camellia.h b/camellia.h index 6ced2b2..7609613 100644 --- a/camellia.h +++ b/camellia.h @@ -1,3 +1,21 @@ +/* camellia.h */ +/* + 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 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 . +*/ #ifndef CAMELLIA_H_ #define CAMELLIA_H_ @@ -11,9 +29,9 @@ typedef struct camellia128_ctx_s{ }camellia128_ctx_t; -void camellia128_init(camellia128_ctx_t* s, uint8_t* key); -void camellia128_enc(camellia128_ctx_t* s, void* block); -void camellia128_dec(camellia128_ctx_t* s, void* block); +void camellia128_init(const void* key, camellia128_ctx_t* s); +void camellia128_enc(void* block, const camellia128_ctx_t* s); +void camellia128_dec(void* block, const camellia128_ctx_t* s); #endif /*CAMELLIA_H_*/