Research Article

Portable Implementation of Postquantum Encryption Schemes and Key Exchange Protocols on JavaScript-Enabled Platforms

Pseudocode 2

// the parameters can be changed
var m = 960, n = 608, l = 256, t = 2, p = 256, q = 1024; // h,r,...
function testlizard() //main function
  //...
  randomPlaintext();
  keyGeneration(l,m,n,q);
  encrypt(l,n,p,q);
  decrypt(l,q,t);
  //...
testlizard(); // invoke the main function