GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CRYPTO_MEMCMP(3) FreeBSD Library Functions Manual CRYPTO_MEMCMP(3)

CRYPTO_memcmpconstant time memory comparison

#include <openssl/crypto.h>

int
CRYPTO_memcmp(const void *a, const void *b, size_t len);

() compares the len bytes pointed to by a and b for equality. It takes an amount of time dependent on len, but independent of the contents of the memory regions pointed to by a and b.

CRYPTO_memcmp() returns 0 if the content of the memory regions is equal or non-zero otherwise.

CRYPTO_memcmp() first appeared in OpenSSL 1.0.1d and has been available since OpenBSD 5.6.

Unlike memcmp(3) and timingsafe_memcmp(3), this function cannot be used to order the two memory regions. In the current implementation, the return value is always greater than or equal to 0.

August 25, 2019 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.