fromClone function for ecdh symkey
This commit is contained in:
parent
0186ca8a24
commit
51adfcc244
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user