projects
/
iotcloud.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3df09
)
minor fix
author
joelbandi
<joelvivekbandi@gmail.com>
Mon, 1 Aug 2016 12:44:14 +0000
(
05:44
-0700)
committer
joelbandi
<joelvivekbandi@gmail.com>
Mon, 1 Aug 2016 12:44:14 +0000
(
05:44
-0700)
src/js/iotjs/src/slot.js
patch
|
blob
|
history
diff --git
a/src/js/iotjs/src/slot.js
b/src/js/iotjs/src/slot.js
index 0a2824bbb258e0ab3f2ad7a2d0b1165e72cc1500..c28354635c3cb463d7077c8aaaa1d46aaec16223 100644
(file)
--- a/
src/js/iotjs/src/slot.js
+++ b/
src/js/iotjs/src/slot.js
@@
-26,12
+26,12
@@
var Slot = function () {
if (prevhmac && prevhmac instanceof Uint8Array) {
this.prevhmac = prevhmac;
} else {
- th
row new Error("prevhmac input not valid"
);
+ th
is.prevhmac = new Uint8Array(this.HMAC_SIZE
);
}
if (hmac && hmac instanceof Uint8Array) {
this.hmac = hmac;
} else {
- th
row new Error("Hmac input not valid")
;
+ th
is.hmac = null
;
}
this.entries = [];
this.freespace = this.SLOT_SIZE - getBaseSize(); //???????