src/cryptography.js
Function cryptography
has 173 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
corbel.cryptography = (function() {
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
* in FIPS 180-2
* Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009.
Function binb_sha256
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function binb_sha256(m, l) {
var HASH = new Array(1779033703, -1150833019, 1013904242, -1521486534,
1359893119, -1694144372, 528734635, 1541459225);
var W = new Array(64);
var a, b, c, d, e, f, g, h;
Function str2rstr_utf8
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function str2rstr_utf8(input) {
var output = '';
var i = -1;
var x, y;