Research Article

Trusted Blockchain-Based Signcryption Protocol and Data Management for Authentication and Authorization in VANETs

Algorithm 3

Signcrypt.
Input:, ,
Output: PKi, SKi
Function SignCrypted Input(, ) Output(, , , ){
   = Method.hash();
   = Method.sign(, );
   = homomorphicEncryption.Enc();
   = signcrypt( || );
 }
 statu = select();
 if(statu !==0) {
  Get cryptographic KeyPair = new createKeyPair();
  Get cryptographic Method = new cryptographic (CryptoType.SCHNORRTYPE);
   = KeyPair.get ();
   = KeyPair.get ();
   = || || ;
   || || || = function.SignCrypted(, );
  entry.set(", , , , , , ", , , , , , , );
  count = table.insert(, entry);
  if (count ==1) {
   statu_code = true;
  } else {
   statu_code = false;
  }
 } else {
  statu_code = false;}
 return statu_code ;