From ded3767803b58d470d722d301feb80f23376fe9a Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 1 Jul 2018 07:29:49 +0200 Subject: [PATCH] updated SJCL to 1.0.7 no change log was published, the one non-build related commit seems to be about an issue on Android: https://github.com/bitwiseshiftleft/sjcl/commit/6bb197851045d1fc401405b11d96ec35404d535a --- js/common.js | 2 +- js/{sjcl-1.0.6.js => sjcl-1.0.7.js} | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename js/{sjcl-1.0.6.js => sjcl-1.0.7.js} (98%) diff --git a/js/common.js b/js/common.js index 3ab4999..575c48a 100644 --- a/js/common.js +++ b/js/common.js @@ -9,7 +9,7 @@ global.fs = require('fs'); // application libraries to test global.$ = global.jQuery = require('./jquery-3.1.1'); -global.sjcl = require('./sjcl-1.0.6'); +global.sjcl = require('./sjcl-1.0.7'); global.Base64 = require('./base64-2.1.9').Base64; global.RawDeflate = require('./rawdeflate-0.5').RawDeflate; global.RawDeflate.inflate = require('./rawinflate-0.3').RawDeflate.inflate; diff --git a/js/sjcl-1.0.6.js b/js/sjcl-1.0.7.js similarity index 98% rename from js/sjcl-1.0.6.js rename to js/sjcl-1.0.7.js index 55107ad..c3c3ea9 100644 --- a/js/sjcl-1.0.6.js +++ b/js/sjcl-1.0.7.js @@ -8,7 +8,7 @@ function t(a,b,c){if(4!==b.length)throw new sjcl.exception.invalid("invalid aes sjcl.bitArray={bitSlice:function(a,b,c){a=sjcl.bitArray.$(a.slice(b/32),32-(b&31)).slice(1);return void 0===c?a:sjcl.bitArray.clamp(a,c-b)},extract:function(a,b,c){var d=Math.floor(-b-c&31);return((b+c-1^b)&-32?a[b/32|0]<<32-d^a[b/32+1|0]>>>d:a[b/32|0]>>>d)&(1<>b-1,1));return a},partial:function(a,b,c){return 32===a?b:(c?b|0:b<<32-a)+0x10000000000*a},getPartial:function(a){return Math.round(a/0x10000000000)||32},equal:function(a,b){if(sjcl.bitArray.bitLength(a)!==sjcl.bitArray.bitLength(b))return!1;var c=0,d;for(d=0;d>>b),c=a[e]<<32-b;e=a.length?a[a.length-1]:0;a=sjcl.bitArray.getPartial(e);d.push(sjcl.bitArray.partial(b+a&31,32>>24|c>>>8&0xff00|(c&0xff00)<<8|c<<24;return a}}; -sjcl.codec.utf8String={fromBits:function(a){var b="",c=sjcl.bitArray.bitLength(a),d,e;for(d=0;d>>24),e<<=8;return decodeURIComponent(escape(b))},toBits:function(a){a=unescape(encodeURIComponent(a));var b=[],c,d=0;for(c=0;c>>8>>>8>>>8),e<<=8;return decodeURIComponent(escape(b))},toBits:function(a){a=unescape(encodeURIComponent(a));var b=[],c,d=0;for(c=0;c>>g)>>>e),gn){if(!b)try{return sjcl.codec.base32hex.toBits(a)}catch(p){}throw new sjcl.exception.invalid("this isn't "+m+"!");}h>e?(h-=e,f.push(l^n>>>h),l=n< - + diff --git a/tpl/page.php b/tpl/page.php index d9dbff2..d8166ea 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -21,7 +21,7 @@ if ($SYNTAXHIGHLIGHTING): endif; ?> - +