From c977e9b68250f4686cf284a6c7f157260dba1252 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Fri, 4 Oct 2013 18:01:42 +0200 Subject: [PATCH] increase rsa keysize to 2048 --- src/js/app-config.js | 2 +- src/js/controller/mail-list.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/app-config.js b/src/js/app-config.js index f1b7063..97e2620 100644 --- a/src/js/app-config.js +++ b/src/js/app-config.js @@ -13,7 +13,7 @@ define([], function() { cloudUrl: 'https://storage.whiteout.io', symKeySize: 128, symIvSize: 128, - asymKeySize: 1024, + asymKeySize: 2048, workerPath: 'js', gmail: { clientId: '440907777130.apps.googleusercontent.com', diff --git a/src/js/controller/mail-list.js b/src/js/controller/mail-list.js index 1a5c3a4..7637a15 100644 --- a/src/js/controller/mail-list.js +++ b/src/js/controller/mail-list.js @@ -17,7 +17,10 @@ define(function(require) { // $scope.select = function(email) { - if (email && typeof email.body === 'string') { + if (!email) { + return; + } + if (typeof email.body === 'string') { email.bodyDisplayParts = email.body.split('\n'); } $scope.selected = email;