Skip to main content
. 2021 Jun 5;21(11):3902. doi: 10.3390/s21113902
Algorithm 1: Proposed digital signature algorithm.
  Input: n,VID, RSUID
  Output: Vehicles key pairs, i.e., public and private, the master secret key of RSU (RSUmsk)
  •   1.

    Global public key component p:primenumber2L1<p<2L

  •   2.

    Deployed public parameters g,p,a and b

  •   3.

    Choose random number x(1,2,3q1)

  •   4.

    Computes vehicle private key VPrk=(x·g)

  •   5.

    Again choose random number y(1,2,3q1)

  •   6.

    Computes vehicle public key VPuk=(y·g)

  •   7.

    Computes SDN controller master secret key SDNmsk=k·g mod p

  •   8.

    Where k: any integer number (0<k<q)

  Signature:
  For all registered vehicles and RSU do
  •   1.

    Assign unique IDi to each registered vehicles such as VID, RSU as RSUID

  •   2.

    Computes pseudo ID of vehicle as H (VID || K|| nj), j=1,2,3n

  •   3.

    Computes C:y2+h(x)y=f(x)

  •   4.

    Computes keys pairs of RSU such as RSUprk=(x·gNonce)

  •   5.

    Computes rsx=rsxi1H(Vri1)

  •   6.

    Applied the master key of SDN controller for signature

  •   7.

    Computes public key of SDN controller such as SDNpuk=(SDNmsk·gNonce)

  •   8.

    Computes R=K·gmodq

  •   9.

    Computes S=[K1(H(M)+x·R)]modq

  End for
  Verifying:
  •   1.

    V=[(gu1·yu2)mod p]modq

  •   2.

    U1=[H(M)ω]modq

  •   3.

    S=K1(H(M)+x·R)

  •   4.

    R=K·gmodq

  •   5.

    ω=(S)1

  •   6.

    U2=[(R)ω]modq

  •   7.

    V=R