arm-crypto-lib/noekeon/noekeon_ctr.h

43 lines
1.1 KiB
C
Raw Permalink Normal View History

2010-09-26 16:22:40 +00:00
/* noekeon_ctr.h */
2010-05-08 01:17:34 +00:00
/*
2011-02-01 12:53:55 +00:00
This file is part of the ARM-Crypto-Lib.
2010-05-08 01:17:34 +00:00
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 <http://www.gnu.org/licenses/>.
*/
2010-09-26 16:22:40 +00:00
/*
2010-05-08 01:17:34 +00:00
* \author Daniel Otte
* \email daniel.otte@rub.de
2010-09-26 16:22:40 +00:00
* \date 2008-08-06
* \license GPLv3 or later
*
2010-05-08 01:17:34 +00:00
*
*
*/
2010-09-26 16:22:40 +00:00
#ifndef NOEKEON_CTR_H_
#define NOEKEON_CTR_H_
2010-05-08 01:17:34 +00:00
#include <stdint.h>
2011-02-01 00:12:24 +00:00
#include "noekeon.h"
2010-05-08 01:17:34 +00:00
2010-09-26 16:22:40 +00:00
typedef struct{
uint8_t counter[16];
uint8_t key[16];
}noekeon_ctr_ctx_t;
2010-05-08 01:17:34 +00:00
2010-09-26 16:22:40 +00:00
void noekeon_ctr_next(void* buffer, const noekeon_ctr_ctx_t* ctx);
2010-05-08 01:17:34 +00:00
2010-09-26 16:22:40 +00:00
#endif /*NOEKEON_CTR_H_*/