fromClone function for ecdh symkey

This commit is contained in:
Sanjana Rajan 2018-02-27 23:15:42 +01:00
parent 0186ca8a24
commit 51adfcc244

View File

@ -63,3 +63,7 @@ ECDHSymmetricKey.prototype.read = function (input) {
ECDHSymmetricKey.prototype.write = function () {
return util.concatUint8Array([new Uint8Array([this.data.length]), this.data]);
};
ECDHSymmetricKey.fromClone = function (clone) {
return new ECDHSymmetricKey(clone.data);
};