Exemple #1
0
 // PKCS #1 v.2.1, Section 4.1
 // I2OSP converts a non-negative integer to an octet string of a specified length.
 public static byte[] I2OSP(int x, int size)
 {
     byte[] array = BitConverterLE.GetBytes(x);
     Array.Reverse(array, 0, array.Length);
     return(I2OSP(array, size));
 }