File: uint16_unpack_big.c

package info (click to toggle)
dq 20230101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,020 kB
  • sloc: ansic: 8,269; makefile: 363; sh: 176; python: 82
file content (11 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#include "uint16_unpack_big.h"

crypto_uint16 uint16_unpack_big(const unsigned char *x) {

    crypto_uint16 y;

    y  = x[0]; y <<= 8;
    y |= x[1];

    return y;
}