OSSL_SELF_TEST_oncorrupt_byte

Optionally corrupt the first byte of bytes when the callback requests failure injection.

Synopsis

Declared in <openssl/self_test.h>

int
OSSL_SELF_TEST_oncorrupt_byte(
    OSSL_SELF_TEST* st,
    unsigned char* bytes);

Return Value

1 if the first byte was corrupted, or 0 if the buffer was left unchanged.

Parameters

NameDescription
stSelf-test object whose callback decides whether to corrupt.
bytesBuffer whose first byte may be altered (phase "Corrupt").