]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/charon-tkm/src/tkm/tkm_aead.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / charon-tkm / src / tkm / tkm_aead.h
CommitLineData
22e79007 1/*
22e79007
SB
2 * Copyright (C) 2020 Stefan Berghofer
3 *
19ef2aec 4 * Copyright (C) secunet Security Networks AG
22e79007 5 *
19ef2aec
TB
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>.
22e79007 10 *
19ef2aec
TB
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
14 * for more details.
22e79007
SB
15 */
16
17/**
18 * @defgroup tkm-aead aead
19 * @{ @ingroup tkm
20 */
21
22#ifndef TKM_AEAD_H_
23#define TKM_AEAD_H_
24
25typedef struct tkm_aead_t tkm_aead_t;
26
27#include <crypto/aead.h>
28#include <tkm/types.h>
29
30/**
31 * Create an AEAD implementation providing encryption and integrity protection
32 * using TKM.
33 *
34 * @param isa_ctx_id id of ISA context to use for encryption/decryption
35 * @param block_len block length of encryption algorithm
36 * @param icv_len length of integrity check value
37 * @param iv_len length of initialization vector
38 * @return created aead_t object
39 */
40aead_t *tkm_aead_create(isa_id_type isa_ctx_id, block_len_type block_len,
41 icv_len_type icv_len, iv_len_type iv_len);
42
43#endif /** TKM_AEAD_H_ @}*/