Research Article
Traceable and Authenticated Key Negotiations via Blockchain for Vehicular Communications
Algorithm 4
Master key parameters are generated to blockchain (type-II).
| Data: , | (1) | Key initiator: | (2) | ⟵ readblock(); | (3) | while (!IsPrime()) do | (4) | ⟵ random(); | (5) | end | (6) | ⟵ (random()%); | (7) | a ⟵ (random()%()); | (8) | A ⟵ ( % ); | (9) | Transaction ⟵ code(, , A); | (10) | Submit; | (11) | Key receiver: | (12) | ⟵ readblock(); | (13) | ⟵ (readblock()%); | (14) | b ⟵ (random()%()); | (15) | B ⟵ ( % ); | (16) | Transaction ⟵ code(B); |
|