Research Article

BAS: The Biphase Authentication Scheme for Wireless Sensor Networks

Algorithm 1

Key generation algorithm.
Legend:
: Modulo 2 division operation
: Truncates the input stream to 128 bits if 128
KM: Master key of 1024 bits
S: Generator polynomial of 64 bits
: Remainder after division between master key and seed
: Number of bits in remainder
KE: 128 bits Encryption key
Begin Proc
If 128
Else
End Proc