Research Article

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

Algorithm 4

Authentication
Input:, ,
Output: true or false
Function unSignCrypted Input(, ) Output(true or false)
  {
   '' || '' = unsigncrypt();
   if('' == 0) {
    '' = '';
   }
   '' = Method.unsign('', );
   '' = homomorphicEncryption.Dec('');
   '' = Method.hash('');
   if('' == '') {
    statu_code = true;
   } else {
    statu_code = false;
   }
  }
  statu = select();
  if(statu !==0) {
   Get cryptographic Method = new cryptographic (CryptoType.SCHNORRTYPE);
   '' = result.getValue2();
   '' = result.getValue3();
   '' = || || '';
   '' = Method.hash('');
   '' = Method.sign('', '');
   statu_code = function.unSignCrypted(, );
  } else {
    statu_code = false;
   }
  return statu_code;