]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/plugins/curve25519/curve25519_identity_hasher.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libstrongswan / plugins / curve25519 / curve25519_identity_hasher.h
CommitLineData
f2eb367a
AS
1/*
2 * Copyright (C) 2016 Andreas Steffen
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
f2eb367a
AS
5 *
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>.
10 *
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.
15 */
16
17/**
18 * @defgroup curve25519_identity_hasher curve25519_identity_hasher
19 * @{ @ingroup curve25519_p
20 */
21
22#ifndef CURVE25519_IDENTITY_HASHER_H_
23#define CURVE25519_IDENTITY_HASHER_H_
24
25typedef struct curve25519_identity_hasher_t curve25519_identity_hasher_t;
26
27#include <crypto/hashers/hasher.h>
28
29/**
30 * Implementation of hasher_t interface using the Identity algorithm.
31 */
32struct curve25519_identity_hasher_t {
33
34 /**
35 * Implements hasher_t interface.
36 */
37 hasher_t hasher_interface;
38};
39
40/**
41 * Creates a new curve25519_identity_hasher_t.
42 *
43 * @param algo algorithm, must be HASH_IDENTITY
44 * @return curve25519_identity_hasher_t object
45 */
46curve25519_identity_hasher_t *curve25519_identity_hasher_create(hash_algorithm_t algo);
47
48#endif /** CURVE25519_IDENTITY_HASHER_H_ @}*/