RC-PoR-P-Source-cod/RC-PoR-P.cpp
byte* Gen_key(int key_size){

  byte* seed_;
  seed_ = new byte[key_size];
  CryptoPP::AutoSeededRandomPool prng;
  prng.GenerateBlock(seed_, key_size);
  return seed_;
}
//=========================
// description: generates a fresh random key.
generates a fresh random key.
generates a fresh random key .
byte* Gen_key(int key_size){
  byte* seed_;
  seed_ = new byte[key_size];
  CryptoPP::AutoSeededRandomPool prng;
  prng.GenerateBlock(seed_, key_size);
  return seed_;
}
byte * Gen_key ( int key_size ) { byte * seed_ ; seed_ = new byte [ key_size ] ; CryptoPP :: AutoSeededRandomPool prng ; prng . GenerateBlock ( seed_ , key_size ) ; return seed_ ; }
description: generates a fresh random key.
description : generates a fresh random key .