<commit_before>'use strict';

/*global describe: true, it: true, before: true*/

var gcm = require('../lib/main').aes256gcm;

var assert = require('chai').assert;

describe('AES-256-GCM tests', function() {
  var key, iv, message1, message2, mac1, mac2;

  before(function(done) {
    gcm.keyGen(function(err, random) {
      key = random.key;
      iv = random.iv;
<commit_msg>Add warning about key reuse.<commit_after>'use strict';

/*global describe: true, it: true, before: true*/

var gcm = require('../lib/main').aes256gcm;

var assert = require('chai').assert;

describe('AES-256-GCM tests', function() {
  var key, iv, message1, message2, mac1, mac2;

  before(function(done) {
    // Warning: don't reuse key and iv in actual code
    gcm.keyGen(function(err, random) {
      assert.ifError(err);

      key = random.key;
      iv = random.iv;

{'fraction_non_alphanumeric': 0.16060961313012895, 'fraction_numerical': 0.023446658851113716, 'mean_word_length': 3.616216216216216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1423032', 'n_tokens_mistral': 313, 'n_tokens_neox': 291, 'n_words': 78}