File: verify.c

package info (click to toggle)
tinyssh 20230101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,244 kB
  • sloc: ansic: 12,106; sh: 1,168; python: 479; makefile: 42
file content (10 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
#include "verify.h"

int verify(const unsigned char *x, const unsigned char *y, long long n) {

    unsigned int d = 0;
    long long i;

    for (i = 0; i < n; ++i) d |= x[i] ^ y[i];
    return (1 & ((d - 1) >> 8)) - 1;
}