aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-10 17:41:18 -0400
committerJack Lloyd <[email protected]>2018-09-10 17:45:22 -0400
commit235b4a43d9fe8087a928cffa3673ed6982656020 (patch)
tree68c15caa11e155f7af238a09d564f061446635a2 /src/lib/pubkey
parent0a090b2aaaaade76741f482666c6c802d1b48044 (diff)
Add FFI functions for creating and getting X25519 data
See GH #1680
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/curve25519/curve25519.h3
-rw-r--r--src/lib/pubkey/curve25519/info.txt1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/pubkey/curve25519/curve25519.h b/src/lib/pubkey/curve25519/curve25519.h
index 1e06fae67..c2f8f42b3 100644
--- a/src/lib/pubkey/curve25519/curve25519.h
+++ b/src/lib/pubkey/curve25519/curve25519.h
@@ -99,6 +99,9 @@ class BOTAN_PUBLIC_API(2,0) Curve25519_PrivateKey final : public Curve25519_Publ
secure_vector<uint8_t> m_private;
};
+typedef Curve25519_PublicKey X25519_PublicKey;
+typedef Curve25519_PrivateKey X25519_PrivateKey;
+
/*
* The types above are just wrappers for curve25519_donna, plus defining
* encodings for public and private keys.
diff --git a/src/lib/pubkey/curve25519/info.txt b/src/lib/pubkey/curve25519/info.txt
index 085314cfe..3818b0606 100644
--- a/src/lib/pubkey/curve25519/info.txt
+++ b/src/lib/pubkey/curve25519/info.txt
@@ -1,5 +1,6 @@
<defines>
CURVE_25519 -> 20170621
+X25519 -> 20180910
</defines>
<header:public>