X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=grain%2Fgrain.h;h=3a701524cfc0bee61d2d085cf9d034fe1f3b9413;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hp=2526fdced5f97ea4c54c8a0a3d5be245185621cf;hpb=d32eba56ce10ea6b9eff123b50d9842673b38f2b;p=avr-crypto-lib.git diff --git a/grain/grain.h b/grain/grain.h index 2526fdc..3a70152 100644 --- a/grain/grain.h +++ b/grain/grain.h @@ -1,7 +1,7 @@ /* grain.h */ /* 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 @@ -19,7 +19,7 @@ /** \file grain.h * \author Daniel Otte - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \license GPLv3 or later * \brief implementation of the Grain streamcipher */ @@ -35,8 +35,8 @@ typedef struct gain_ctx_st{ uint8_t nfsr[10]; } grain_ctx_t; - -uint8_t grain_enc(grain_ctx_t* ctx); -void grain_init(const void* key, const void* iv, grain_ctx_t* ctx); +uint8_t grain_getbyte(grain_ctx_t *ctx); +uint8_t grain_enc(grain_ctx_t *ctx); +void grain_init(const void *key, const void *iv, grain_ctx_t *ctx); #endif /*GRAIN_H_*/