/** 
 * Test Group Key Exchanges
 */
var should = require('should');
var Sodium = require('../lib/sodium');
if (process.env.COVERAGE) {
	Sodium = require('../lib-cov/sodium');
}

describe('DH Group Key Exchange', function () {
	it('should work for a groupd', function (done) {

		var a = new Sodium.Key.ECDH("", Sodium.Hash.sha256(new Buffer(
			"9549937362")));
		var b = new Sodium.Key.ECDH("", Sodium.Hash.sha256(new Buffer(
			"9542584444")));

		var abDH = new Sodium.ECDH(b.pk(), a.sk()).secret();
		var baDH = new Sodium.ECDH(a.pk(), b.sk()).secret();

		console.log(abDH.toString('hex'));
		console.log(baDH.toString('hex'));
		abDH.should.eql(baDH);


		done();
	});
});
@@ -557,82 +557,8 @@
 );%0A%0A
-%09%09console.log(abDH.toString('hex'));%0A%09%09console.log(baDH.toString('hex'));%0A
 %09%09ab

remove console output