Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

some variable is not define && use UMD for automated build systems #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cryptico.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function bnpFromString(s, b) {
}
else this[this.t - 1] |= x << sh;
sh += k;
if (sh >= this.DB) sh -= this.DB;
if (sh >= this.DB) sh -= this.DB;:
}
if (k == 8 && (s[0] & 0x80) != 0) {
this.s = -1;
Expand Down Expand Up @@ -3361,6 +3361,7 @@ var cryptico = (function() {
{
var newBytes = bytes.slice(0);
var padding = (16 - (bytes.length % 16)) % 16;
var i;
for(i = bytes.length; i < bytes.length + padding; i++)
{
newBytes.push(0);
Expand Down
Loading