Mercurial > hg > ucis.core
view NaCl/crypto_verify/32.cs @ 81:3352f89cf6f5
FBGUI ContainerControl fixes (client area, keyboard capture)
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 23 Feb 2014 16:56:42 +0100 |
parents | b5e27116bd2a |
children |
line wrap: on
line source
???using System; namespace UCIS.NaCl.crypto_verify { unsafe static class _32 { const int BYTES = 32; public static int crypto_verify(Byte* x, Byte* y) { Int32 differentbits = 0; for (int i = 0; i < 32; i++) differentbits |= x[i] ^ y[i]; return (1 & ((differentbits - 1) >> 8)) - 1; } } }