Org.BouncyCastle.Crypto.Generators.DsaParametersGenerator.Add C# (CSharp) Méthode

Add() private static méthode

private static Add ( byte a, byte b, int value ) : void
a byte
b byte
value int
Résultat void
        private static void Add(
            byte[]  a,
            byte[]  b,
            int     value)
        {
            int     x = (b[b.Length - 1] & 0xff) + value;

            a[b.Length - 1] = (byte)x;
            x = (int) ((uint) x >>8);

            for (int i = b.Length - 2; i >= 0; i--)
            {
                x += (b[i] & 0xff);
                a[i] = (byte)x;
                x = (int) ((uint) x >>8);
            }
        }