BUF_reverse

Reverse siz bytes from in into out (or in place if in is NULL).

Synopsis

Declared in <openssl/buffer.h>

void
BUF_reverse(
    unsigned char* out,
    unsigned char const* in,
    size_t siz);

Parameters

NameDescription
outDestination buffer; may equal in when reversing in place with in non-NULL, or the sole buffer when in is NULL.
inSource bytes to reverse, or NULL to reverse out in place.
sizNumber of bytes to reverse.