Verify "no padding" by copying f into to when lengths match (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_padding_check_none(
    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 recovered data on success, or a negative value on error.

Parameters

Name

Description

to

Destination buffer of capacity tlen.

tlen

Capacity of to in bytes.

f

Encoded block bytes to check/copy.

fl

Length of f in bytes.

rsa_len

RSA modulus size in bytes (expected encoded length).

Created with MrDocs