From 0af12b81a38828070d6dd920e6abafe90d13011f Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 1 Oct 2014 07:40:02 +0200 Subject: [PATCH] Fix typo --- src/crypto/public_key/rsa.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/public_key/rsa.js b/src/crypto/public_key/rsa.js index d7877d1b..e306e5e5 100644 --- a/src/crypto/public_key/rsa.js +++ b/src/crypto/public_key/rsa.js @@ -141,14 +141,14 @@ function RSA() { if (typeof window !== 'undefined' && window.crypto && window.crypto.subtle) { var Euint32 = new Uint32Array([parseInt(E, 16)]); // get integer of exponent - var Eunit8 = new Uint8Array(Euint32.buffer); // get bytes of exponent + var Euint8 = new Uint8Array(Euint32.buffer); // get bytes of exponent var keyGenOpt = { name: 'RSASSA-PKCS1-v1_5', modulusLength: B, // the specified keysize in bits - publicExponent: Eunit8.subarray(0, 3), // take three bytes (max 65537) + publicExponent: Euint8.subarray(0, 3), // take three bytes (max 65537) hash: { - name: 'SHA-1' // not required for actual RSA keys, but for crypto api 'sign' and 'verifiy' + name: 'SHA-1' // not required for actual RSA keys, but for crypto api 'sign' and 'verify' } };