Welcome to mirror list, hosted at ThFree Co, Russian Federation.

FFDHE.h « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73461fff3cbfc0cc432368e771beb51d0d60b25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2005-2019 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

#ifndef MUMBLE_FFDHE_H_
#define MUMBLE_FFDHE_H_

/// FFDHE provides access to the Diffie-Hellman parameters from RFC 7919.
class FFDHE {
	public:
		/// NamedGroups returns a list of the supported named
		/// groups for PEMForNamedGroup.
		static QStringList NamedGroups();

		/// PEMForNamedGroup returns the PEM-encoded
		/// Diffie-Hellman parameters for the RFC 7919
		/// group with the given name, such as "ffdhe2048",
		/// "ffdhe4096", etc.
		///
		/// Returns an empty byte array if the request
		/// could not be fulfilled.
		static QByteArray PEMForNamedGroup(QString name);
};

#endif