Algorithm 1: Key Generation and DNA Encryption. |
Key Generation |
Begin
Select Prime number P.
Select Private Key D.
Select Public Key E.
T = (E)^d mod P.
Value of T will be key value
End
|
DNA based Encryption (at WBAN’s Sensors) |
-
8.
Begin
-
9.
for
each NS ∈ PD do
-
10.
Sensor node sends authenticated data towards PD through DNA Encryption securely
-
11.
Then idle spectrum is being sensed to transfer data
-
12.
Through idle bandwidth spectrum PD transfer data to BS
-
13.
end for
-
14.
for
each NS ∈ PD do
-
15.
if
(PD receives data from NS securely) then
-
16.
encrypted data is ready to transfer over idle bandwidth spectrum
-
17.
else if
(PD does not receive data in given slot from NS) then
-
18.
Bandwidth is not sensed for idle spectrum
-
19.
else if
(BS receives data from PD successfully) then
-
20.
data is transferred to cognitive networks BS
-
21.
end if
-
22.
end for
|
DNA Encryption Algorithm (DEA) (at Cognitive networks) |
Begin |
-
23.
BS transmits data to gateway safely encrypted using DEA
-
24.
Data is transferred from the gateway to the medical server.
-
25.
Data is detected by medical servers for further action.
-
26.
for each BS GW do
-
27.
If (BS safely receives data from the spectrum), then
-
28.
Gateway is used to transport data over clouds.
-
29.
Data is not identified by the Gateway to send over clouds if (BS does not receive data from any spectrum in specified slot).
-
30.
End if
-
31.
If (data from BS to Gateway) is true, then
-
32.
Gateway clouds deliver data to the medical server.
-
33.
End if
-
34.
End for
|