#include <crypto.h>
|
| gnutls_pubkey_t | pk {nullptr} |
| |
A public key.
Definition at line 75 of file crypto.h.
◆ PublicKey() [1/4]
| dht::crypto::PublicKey::PublicKey |
( |
gnutls_pubkey_t |
k | ) |
|
|
inline |
Takes ownership of an existing gnutls_pubkey.
Definition at line 82 of file crypto.h.
◆ PublicKey() [2/4]
| dht::crypto::PublicKey::PublicKey |
( |
const uint8_t * |
dat, |
|
|
size_t |
dat_size |
|
) |
| |
Import public key from serialized data
◆ PublicKey() [3/4]
| dht::crypto::PublicKey::PublicKey |
( |
const Blob & |
pk | ) |
|
|
inline |
◆ PublicKey() [4/4]
| dht::crypto::PublicKey::PublicKey |
( |
PublicKey && |
o | ) |
|
|
inlinenoexcept |
◆ checkSignature()
| bool dht::crypto::PublicKey::checkSignature |
( |
const Blob & |
data, |
|
|
const Blob & |
signature |
|
) |
| const |
|
inline |
◆ encrypt()
| Blob dht::crypto::PublicKey::encrypt |
( |
const Blob & |
data | ) |
const |
|
inline |
◆ getId()
| InfoHash dht::crypto::PublicKey::getId |
( |
| ) |
const |
Get public key fingerprint
◆ getLongId()
| PkId dht::crypto::PublicKey::getLongId |
( |
| ) |
const |
Get public key long fingerprint
◆ msgpack_pack()
template<typename Packer >
| void dht::crypto::PublicKey::msgpack_pack |
( |
Packer & |
p | ) |
const |
|
inline |
◆ operator bool()
| dht::crypto::PublicKey::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator!=()
| bool dht::crypto::PublicKey::operator!= |
( |
const PublicKey & |
o | ) |
const |
|
inline |
◆ operator==()
| bool dht::crypto::PublicKey::operator== |
( |
const PublicKey & |
o | ) |
const |
|
inline |
◆ pk
| gnutls_pubkey_t dht::crypto::PublicKey::pk {nullptr} |
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/opendht-2.4.4/include/opendht/crypto.h