blob: 241b5df9b5855f6ed467226f7ca5cce6314cd3e9 (
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
27
28
29
30
|
// Copyright 2017-2021 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_
class QByteArray;
class QString;
class QStringList;
/// 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
|