X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=camellia.h;h=a636efa67365559fdd1ae7a41fdd9e34ab19c240;hb=7cd0bb77cb76ef7c45b41fd33ca364ddb89ec1ad;hp=6ced2b2114f672559c1ae3516869ae271506ea93;hpb=38806fc75038026e167a26eff90b6111066a3642;p=avr-crypto-lib.git diff --git a/camellia.h b/camellia.h index 6ced2b2..a636efa 100644 --- a/camellia.h +++ b/camellia.h @@ -1,3 +1,21 @@ +/* camellia.h */ +/* + This file is part of the Crypto-avr-lib/microcrypt-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(uint8_t* key, camellia128_ctx_t* s); +void camellia128_enc(void* block, camellia128_ctx_t* s); +void camellia128_dec(void* block, camellia128_ctx_t* s); #endif /*CAMELLIA_H_*/