<div dir="ltr">Hello,<div><br></div><div>I have in mind to use a smartcard or a hardware hsm as a random number generator via the PKCS#11 C_GenerateRandom function.</div><div><br></div><div>However I would need a large amount of bits. </div><div>However the available examples on Internet use small values for the randomLen argument (<100 bits) e.g. <a href="https://docs.oracle.com/cd/E19120-01/open.solaris/819-2145/6n4f2qhq0/index.html">https://docs.oracle.com/cd/E19120-01/open.solaris/819-2145/6n4f2qhq0/index.html</a></div><div><br></div><div>Is there a theoretical maximum value?</div><div>Could I ask for 1000000000 bits at one time for example ? Or will I have to call several times the function in a loop with small values?</div><div>I assume it would depend on the smartcard model, right?</div><div><br></div><div>Thanks for your feedback!</div><div><br></div><div>Cheers</div></div>