File: crypto_verify_32.c

package info (click to toggle)
tinyssh 20250501-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,388 kB
  • sloc: ansic: 20,245; sh: 1,582; python: 1,449; makefile: 913
file content (12 lines) | stat: -rw-r--r-- 294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#include "crypto_int16.h"
#include "crypto_verify_32.h"

int crypto_verify_32_tinyssh(const unsigned char *x, const unsigned char *y) {

    crypto_int16 d = 0;
    long long i;

    for (i = 0; i < crypto_verify_32_BYTES; ++i) { d |= x[i] ^ y[i]; }

    return crypto_int16_nonzero_mask(d);
}