Research Article

BFLP: An Adaptive Federated Learning Framework for Internet of Vehicles

Algorithm 6

CPC encryption process.
Input: M, Kenc
Output: C
 1: Divide M ⟶ M1, M2, M3,M4
2: Generate different Keyj form the main Key Kenc
 3: for each round j = 1 : 8 do
 4:     X := MjMj+1
 5:     Y := Mj+1Mj+3
 6:     Count1 := Count − Zero (X)
7:      W := f1 (Count1, X)
 8:      R := WY
 9:     Count2 := Count − Zero (R)
 10:       S := f2(Count2, R)
 11:       Mj+4 := S
 12:  Permutation: (Mj+1, Mj+2,Mj+3)
 13: end for
 14: C := M9||M10||M11||M12
 15: Output C