RSA_padding_check_X931

Verify ANSI X9.31 padding and recover the message (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_padding_check_X931(
    unsigned char* to,
    int tlen,
    unsigned char const* f,
    int fl,
    int rsa_len);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Length of the recovered message, or a negative value on error.

Parameters

NameDescription
toDestination buffer for the recovered message.
tlenCapacity of to in bytes.
fEncoded block to check.
flLength of f in bytes.
rsa_lenExpected RSA modulus size in bytes.