         keyOperation = window.msCrypto.subtle.generateKey( {
           name: 'RSA-OAEP'
           modulusLength: params.bits
-          publicExponent: new Uint8Array([1, 0, 1])
+          publicExponent: params.e
           hash: { name: 'SHA-256' }
         }, true, ['encrypt', 'decrypt'])
         keyOperation.onerror = ->
-          log.error('sad failure')
+          log.error('Failed to generate RSA keys using IE web crypto')
 
         keyOperation.oncomplete = ->
           keyPair = keyOperation.result
-          log.error(keyPair)
           return deferred.resolve(keyPair)
         
         return deferred.promise

        window.crypto.subtle.generateKey( {
          name: 'RSA-OAEP'
          modulusLength: params.bits
          publicExponent: new Uint8Array([1, 0, 1]) # constants
          hash: { name: 'SHA-256' }
        }, true, ['encrypt', 'decrypt'])
      .then (keys) ->

  'bluebird'
], (require) ->

  Forge            = require 'forge'
  Logger           = require 'kryptnostic.logger'
  Promise          = require 'bluebird'
  
  log              = Logger.get('RsaKeyGenerator')
  
  RSA_KEY_SIZE     = 4096
  EXPONENT_NUM     = 0x10001
  EXPONENT_BIG_INT = new Uint8Array([1, 0, 1])

  class RsaKeyGenerator

    forgeGenerate: (params) ->
      Promise.resolve()
