php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
md5.c File Reference
#include "php.h"
#include "md5.h"
#include <string.h>

Go to the source code of this file.

Macros

#define F(x, y, z)
 
#define G(x, y, z)
 
#define H(x, y, z)
 
#define I(x, y, z)
 
#define STEP(f, a, b, c, d, x, t, s)
 
#define SET(n)
 
#define GET(n)
 

Functions

PHPAPI void make_digest (char *md5str, const unsigned char *digest)
 
PHPAPI void make_digest_ex (char *md5str, const unsigned char *digest, int len)
 
 PHP_FUNCTION (md5)
 
 PHP_FUNCTION (md5_file)
 
PHPAPI void PHP_MD5InitArgs (PHP_MD5_CTX *ctx, ZEND_ATTRIBUTE_UNUSED HashTable *args)
 
PHPAPI void PHP_MD5Update (PHP_MD5_CTX *ctx, const void *data, size_t size)
 
PHPAPI void PHP_MD5Final (unsigned char *result, PHP_MD5_CTX *ctx)
 

Macro Definition Documentation

◆ F

#define F ( x,
y,
z )
Value:
((z) ^ ((x) & ((y) ^ (z))))

Definition at line 144 of file md5.c.

◆ G

#define G ( x,
y,
z )
Value:
((y) ^ ((z) & ((x) ^ (y))))

Definition at line 145 of file md5.c.

◆ GET

#define GET ( n)
Value:
(ctx->block[(n)])
zend_long n
Definition ffi.c:4979

Definition at line 178 of file md5.c.

◆ H

#define H ( x,
y,
z )
Value:
((x) ^ (y) ^ (z))

Definition at line 146 of file md5.c.

◆ I

#define I ( x,
y,
z )
Value:
((y) ^ ((x) | ~(z)))

Definition at line 147 of file md5.c.

◆ SET

#define SET ( n)
Value:
(ctx->block[(n)] = \
(uint32_t)ptr[(n) * 4] | \
((uint32_t)ptr[(n) * 4 + 1] << 8) | \
((uint32_t)ptr[(n) * 4 + 2] << 16) | \
((uint32_t)ptr[(n) * 4 + 3] << 24))
void * ptr
Definition ffi.c:3814

Definition at line 172 of file md5.c.

◆ STEP

#define STEP ( f,
a,
b,
c,
d,
x,
t,
s )
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b);
char s[4]
Definition cdf.c:77
$obj a
Definition test.php:84

Definition at line 152 of file md5.c.

Function Documentation

◆ make_digest()

PHPAPI void make_digest ( char * md5str,
const unsigned char * digest )

Definition at line 22 of file md5.c.

◆ make_digest_ex()

PHPAPI void make_digest_ex ( char * md5str,
const unsigned char * digest,
int len )

Definition at line 28 of file md5.c.

◆ PHP_FUNCTION() [1/2]

PHP_FUNCTION ( md5 )

Definition at line 42 of file md5.c.

◆ PHP_FUNCTION() [2/2]

PHP_FUNCTION ( md5_file )

Definition at line 69 of file md5.c.

◆ PHP_MD5Final()

PHPAPI void PHP_MD5Final ( unsigned char * result,
PHP_MD5_CTX * ctx )

Definition at line 339 of file md5.c.

◆ PHP_MD5InitArgs()

PHPAPI void PHP_MD5InitArgs ( PHP_MD5_CTX * ctx,
ZEND_ATTRIBUTE_UNUSED HashTable * args )

Definition at line 293 of file md5.c.

◆ PHP_MD5Update()

PHPAPI void PHP_MD5Update ( PHP_MD5_CTX * ctx,
const void * data,
size_t size )

Definition at line 304 of file md5.c.