blob: 1c7f4f69bb4b506dfbf5e44a59b99fb7787eecdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
'use strict';
var common = require('../common');
var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
process.exit();
}
var crypto = require('crypto');
var odd = new Buffer(39);
odd.fill('A');
var c = crypto.createDiffieHellman(32);
c.setPrivateKey(odd);
c.generateKeys();
|