in src/rsa.js [113:156]
hashit: function(sha, A, n) {
var R = [],
H;
if (sha == this.SHA256) {
H = new ctx.HASH256();
if (A != null) {
H.process_array(A);
}
if (n >= 0) {
H.process_num(n);
}
R = H.hash();
} else if (sha == this.SHA384) {
H = new ctx.HASH384();
if (A != null) {
H.process_array(A);
}
if (n >= 0) {
H.process_num(n);
}
R = H.hash();
} else if (sha == this.SHA512) {
H = new ctx.HASH512();
if (A != null) {
H.process_array(A);
}
if (n >= 0) {
H.process_num(n);
}
R = H.hash();
}
return R;
},