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
Name |
Description |
st |
Self‐test object whose callback decides whether to corrupt. |
bytes |
Buffer whose first byte may be altered (phase "Corrupt"). |
Created with MrDocs