aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-06-08 15:21:09 -0400
committerJack Lloyd <[email protected]>2017-06-08 15:21:09 -0400
commitc3a97f3f02c06bfbaa673a2e2555dd9b312f87a7 (patch)
treec4ed34fab5fec8e048843187b233655d941a87bb /src/lib/ffi
parent9676ed62cbe913be9a7d8701bf12691079820c8c (diff)
Add FFI test and test data from PGP draft
Diffstat (limited to 'src/lib/ffi')
-rw-r--r--src/lib/ffi/ffi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index 91cebf333..7f07339e3 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -1612,7 +1612,7 @@ int botan_privkey_load_ed25519(botan_privkey_t* key,
*key = nullptr;
try
{
- const Botan::secure_vector<uint8_t> privkey_vec(privkey, privkey + 64);
+ const Botan::secure_vector<uint8_t> privkey_vec(privkey, privkey + 32);
*key = new botan_privkey_struct(new Botan::Ed25519_PrivateKey(privkey_vec));
return 0;
}