gPass

gPass Commit Details

Date:2017-07-19 19:15:21 (1 year 3 months ago)
Author:Grégory Soutadé
Branch:master
Commit:8469c01b132d8c9a67ff4494e532a411a7c581d3
Parents: 71621292205c254370a6d753fe93dfd3da868c0a
Message:Fix minor error : crypto_v2_logins_size must be always updated

Changes:
Mchrome_addon/lib/main.js (3 diffs)

File differences

chrome_addon/lib/main.js
2020
2121
2222
23
23
2424
2525
2626
......
102102
103103
104104
105
105106
106107
107
108108
109109
110110
......
222222
223223
224224
225
225
226226
227227
228228
var DEBUG = false;
var protocol_version = 4;
var account_url = null;
var crypto_v2_logins_size=0;
var crypto_v2_logins_size = 0;
SERVER = {OK : 0, FAILED : 1, RESTART_REQUEST : 2};
}
}
crypto_v2_logins_size = key_index;
if (await getPref("crypto_v1_compatible"))
{
crypto_v2_logins_size = key_index;
for(a=0; a<logins.length; a++, key_index++)
{
enc = await generate_request(domain, logins[a], mkey, global_iv, 1);
if (ciphered_password != "")
{
debug("Ciphered password : " + ciphered_password);
if (matched_key >= crypto_v2_logins_size || server_protocol_version < 4)
if (matched_key >= crypto_v2_logins_size)
// Crypto v1
{
clear_password = await decrypt_ecb(mkey, hex2a(ciphered_password));

Archive Download the corresponding diff file