documentation

This commit is contained in:
Amish Shah
2016-10-02 15:16:54 +01:00
parent ed8b79aa46
commit 2bb6ecdc28
2 changed files with 26 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
/**
* Represents a Secret Key used in encryption over voice
*/
class SecretKey {
constructor(key) {
/**
* The key used for encryption
* @type {Uint8Array}
*/
this.key = new Uint8Array(new ArrayBuffer(key.length));
for (const index in key) {
this.key[index] = key[index];