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

Name

Description

to

Destination buffer for the recovered message.

tlen

Capacity of to in bytes.

f

Encoded block to check.

fl

Length of f in bytes.

rsa_len

Expected RSA modulus size in bytes.

Created with MrDocs