Update comments and documentation
parent
6f2188af79
commit
00f777661d
|
|
@ -1,6 +1,7 @@
|
||||||
// xed25519_32.cpp - written and placed in public domain by Jeffrey Walton
|
// xed25519.cpp - written and placed in public domain by Jeffrey Walton
|
||||||
// Crypto++ specific implementation wrapped around Adam
|
// Crypto++ specific implementation wrapped around Andrew
|
||||||
// Langley's curve25519-donna.
|
// Moon's public domain curve25519-donna. Also see
|
||||||
|
// https://github.com/floodyberry/curve25519-donna.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
|
|
|
||||||
15
xed25519.h
15
xed25519.h
|
|
@ -1,12 +1,21 @@
|
||||||
// xed25519.h - written and placed in public domain by Jeffrey Walton
|
// xed25519.h - written and placed in public domain by Jeffrey Walton
|
||||||
// Crypto++ specific implementation wrapped around Adam
|
// Crypto++ specific implementation wrapped around Andrew
|
||||||
// Langley's curve25519-donna.
|
// Moon's public domain curve25519-donna. Also see
|
||||||
|
// https://github.com/floodyberry/curve25519-donna.
|
||||||
|
|
||||||
// Typically the key agreement classes encapsulate their data more
|
// Typically the key agreement classes encapsulate their data more
|
||||||
// than x25519 does below. We made them a little more accessible
|
// than x25519 does below. We made them a little more accessible
|
||||||
// due to crypto_box operations. Once the library cuts-in the
|
// due to crypto_box operations. Once the library cuts-in the
|
||||||
// crypto_box operations the x25519 class will be more restricted.
|
// crypto_box operations the x25519 class will be more restricted.
|
||||||
|
|
||||||
|
/// \file xed25519.h
|
||||||
|
/// \brief Classes for x25519 and ed25519 operations
|
||||||
|
/// \details This implementation integrates Andrew Moon's public domain
|
||||||
|
/// curve25519-donna.
|
||||||
|
/// \sa Andrew Moon's GitHub <A
|
||||||
|
/// HREF="https://github.com/floodyberry/curve25519-donna">curve25519-donna</A>
|
||||||
|
/// \since Crypto++ 8.0
|
||||||
|
|
||||||
#ifndef CRYPTOPP_XED25519_H
|
#ifndef CRYPTOPP_XED25519_H
|
||||||
#define CRYPTOPP_XED25519_H
|
#define CRYPTOPP_XED25519_H
|
||||||
|
|
||||||
|
|
@ -33,6 +42,8 @@ public:
|
||||||
/// \param x private key
|
/// \param x private key
|
||||||
static void ClampKey(byte x[32]);
|
static void ClampKey(byte x[32]);
|
||||||
|
|
||||||
|
virtual ~x25519() {}
|
||||||
|
|
||||||
/// \brief Create a x25519 object
|
/// \brief Create a x25519 object
|
||||||
/// \param y public key
|
/// \param y public key
|
||||||
/// \param x private key
|
/// \param x private key
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue