#include "php.h"
#include "php_main.h"
#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#include <sys/types.h>
#include <string.h>
Go to the source code of this file.
|
#define | __alignof__(type) |
|
#define | MIN(a, b) |
|
#define | MAX(a, b) |
|
#define | SWAP(n) |
|
#define | Ch(x, y, z) |
|
#define | Maj(x, y, z) |
|
#define | S0(x) |
|
#define | S1(x) |
|
#define | R0(x) |
|
#define | R1(x) |
|
#define | CYCLIC(w, s) |
|
#define | UNALIGNED_P(p) |
|
#define | SALT_LEN_MAX 16 |
|
#define | ROUNDS_DEFAULT 5000 |
|
#define | ROUNDS_MIN 1000 |
|
#define | ROUNDS_MAX 999999999 |
|
#define | b64_from_24bit(B2, B1, B0, N) |
|
◆ __alignof__
Value:
#define offsetof(STRUCTURE, FIELD)
Definition at line 16 of file crypt_sha256.c.
◆ b64_from_24bit
#define b64_from_24bit |
( |
| B2, |
|
|
| B1, |
|
|
| B0, |
|
|
| N ) |
Value: do { \
unsigned int w = ((B2) << 16) | ((B1) << 8) | (B0); \
while (
n-- > 0 && buflen > 0) \
{ \
*
cp++ = b64t[w & 0x3f]; \
--buflen; \
w >>= 6; \
} \
} while (0)
◆ Ch
◆ CYCLIC
Value:((w >>
s) | (w << (32 -
s)))
◆ Maj
Value:((x & y) ^ (x & z) ^ (y & z))
◆ MAX
◆ MIN
◆ R0
◆ R1
◆ ROUNDS_DEFAULT
◆ ROUNDS_MAX
◆ ROUNDS_MIN
◆ S0
◆ S1
◆ SALT_LEN_MAX
◆ SWAP
Value: (((
n) << 24) | (((
n) & 0xff00) << 8) | (((
n) >> 8) & 0xff00) | ((
n) >> 24))
Definition at line 57 of file crypt_sha256.c.
◆ UNALIGNED_P
Value:(((uintptr_t)
p) %
sizeof (uint32_t) != 0)
◆ __php_stpncpy()
char * __php_stpncpy |
( |
char * | dst, |
|
|
const char * | src, |
|
|
size_t | len ) |
◆ php_sha256_crypt()
char * php_sha256_crypt |
( |
const char * | key, |
|
|
const char * | salt ) |
◆ php_sha256_crypt_r()
char * php_sha256_crypt_r |
( |
const char * | key, |
|
|
const char * | salt, |
|
|
char * | buffer, |
|
|
int | buflen ) |