Optionally corrupt the first byte of bytes when the callback requests failure injection.
Declared in <openssl/self_test.h>
int
OSSL_SELF_TEST_oncorrupt_byte(
OSSL_SELF_TEST* st,
unsigned char* bytes);
1 if the first byte was corrupted, or 0 if the buffer was left unchanged.
| Name | Description |
|---|---|
| st | Self-test object whose callback decides whether to corrupt. |
| bytes | Buffer whose first byte may be altered (phase "Corrupt"). |