Research Article

The Prediction of Serial Number in OpenSSL’s X.509 Certificate

Algorithm 2

The function of RAND_bytes. RAND_bytes(void b, int n).

Input: r, where r is divided into 10-byte-length blocks
// r is defined and evaluated in the function
Output: b
for i=1 to n do
 s[p:p+9 mod q]=s[p:p+9 mod q]
 p=p+10 mod q
end for
return , s, p, q