Journal of Applied Mathematics / 2014 / Article / Alg 4

Research Article

A Matrix PRNG with S-Box Output Filtering

Algorithm 4

offr:= 0
for c:= 0 to 94 increment 2 {
b0:= Xh[c] % 256
b1:= Xh[c]>>8 % 256
b2:= Xh[c]>>16 % 256
b3:= Xh[c]>>24 % 256
Seq[offr]:= (S0[b0]S1[b1]S2[b2]S3[b3])
Seq[offr]:= Seq[offr] + Xh[c  +  1]
offr:= offr + 1
}