Work with PkDecryption keys by their private keys
Change interface to allow the app to get the private part of the key and instantiate a decryption object from just the private part of the key. Changes the function generating a key from random bytes to be initialising a key with a private key (because it's exactly the same thing). Exports & imports private key parts as ArrayBuffer at JS level rather than base64 assuming we are moving that way in general.
Showing
- include/olm/error.h 7 additions, 0 deletionsinclude/olm/error.h
- include/olm/pk.h 30 additions, 11 deletionsinclude/olm/pk.h
- javascript/olm_pk.js 30 additions, 2 deletionsjavascript/olm_pk.js
- javascript/test/pk.spec.js 14 additions, 0 deletionsjavascript/test/pk.spec.js
- src/error.c 1 addition, 0 deletionssrc/error.c
- src/pk.cpp 23 additions, 6 deletionssrc/pk.cpp
- tests/test_pk.cpp 7 additions, 2 deletionstests/test_pk.cpp
Please register or sign in to comment