2 * Copyright (C) 2015 Tobias Brunner
4 * Copyright (C) secunet Security Networks AG
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 #include "iv_gen_null.h"
19 typedef struct private_iv_gen_t private_iv_gen_t
;
22 * Private data of an iv_gen_t object.
24 struct private_iv_gen_t
{
27 * Public iv_gen_t interface.
32 METHOD(iv_gen_t
, get_iv
, bool,
33 private_iv_gen_t
*this, uint64_t seq
, size_t size
, uint8_t *buffer
)
38 METHOD(iv_gen_t
, allocate_iv
, bool,
39 private_iv_gen_t
*this, uint64_t seq
, size_t size
, chunk_t
*chunk
)
45 METHOD(iv_gen_t
, destroy
, void,
46 private_iv_gen_t
*this)
51 iv_gen_t
*iv_gen_null_create()
53 private_iv_gen_t
*this;
58 .allocate_iv
= _allocate_iv
,