Lint

parent 6c15ec6a
......@@ -267,6 +267,7 @@ export default class Client {
// }
const salt = data.salt; // salt.length === 16
// eslint-disable-next-line no-unused-vars
const B = data.publicKey; // B.length === 192 (not 384)
const params = {
......@@ -350,6 +351,6 @@ export default class Client {
const server_iv = data.iv;
console.log('Enabling encryption...');
this.session.enableEncryption(key, client_iv, server_iv);
this.session.enableEncryption(key, client_iv, server_iv);
}
}
......@@ -170,7 +170,7 @@ export default class Server {
} else if (data.state === 3) {
console.log('Authenticate stage three');
const user = this.users.get(session.authenticating_user);
const user = this.users.get(session.authenticating_user); // eslint-disable-line no-unused-vars
const srps = session.srp;
srps.setA(data.publicKey);
......
......@@ -246,7 +246,7 @@ export class Encryption {
crypto.pbkdf2Sync(key, PBKDF_salt0, 5, 16, 'sha1'); // KDF.PBKDF2(key, PBKDF_salt0, 16, 5)
const derived_server_key = this.derived_server_key =
crypto.pbkdf2Sync(key, PBKDF_salt1, 7, 16, 'sha1'); // KDF.PBKDF2(key, PBKDF_salt1, 16, 7);
// PBKDF2(password, salt, dkLen=16, count=1000, prf=None)
// PBKDF2(password, salt, dkLen=16, count=1000, prf=None)
this.client_context = this.constructor.createEncryptionContext(derived_client_key, client_iv);
this.server_context = this.constructor.createEncryptionContext(derived_server_key, server_iv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment