diff --git a/src/chacha.js b/src/chacha.js --- a/src/chacha.js +++ b/src/chacha.js @@ -5,7 +5,7 @@ function lrot(x,shift){ return (x<>>(32-shift))&MASK; } -function createNonce(){ +export function createNonce(){ let nonce=new Uint8Array(12); window.crypto.getRandomValues(nonce); return Array.from(nonce);