@ -1,4 +1,4 @@
/ * v i m : t s = 4 : s w = 4
/ * v i m : t s = 4 : s w = 4 : e x p a n d t a b
*
*
* This program is free software : you can redistribute it and / or modify
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Lesser General Public License as published by
* it under the terms of the GNU Lesser General Public License as published by
@ -17,9 +17,9 @@
/* Web Crypto polyfill. TODO: replace with web crypto */
/* Web Crypto polyfill. TODO: replace with web crypto */
// All inputs/outputs are arraybuffers!
// All inputs/outputs are arraybuffers!
window . crypto . subtle = ( function ( ) {
window . crypto . subtle = ( function ( ) {
if ( window . crypto . subtle !== undefined && window . crypto . subtle !== null ) {
/ * i f ( w i n d o w . c r y p t o . s u b t l e ! = = u n d e f i n e d & & w i n d o w . c r y p t o . s u b t l e ! = = n u l l ) {
return window . crypto . subtle ;
return window . crypto . subtle ;
} else {
} else * / {
var StaticArrayBufferProto = new ArrayBuffer ( ) . _ _proto _ _ ;
var StaticArrayBufferProto = new ArrayBuffer ( ) . _ _proto _ _ ;
function assertIsArrayBuffer ( thing ) {
function assertIsArrayBuffer ( thing ) {
if ( thing !== Object ( thing ) || thing . _ _proto _ _ != StaticArrayBufferProto )
if ( thing !== Object ( thing ) || thing . _ _proto _ _ != StaticArrayBufferProto )