RSA_padding_check_none

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

NameDescription
toDestination buffer of capacity tlen.
tlenCapacity of to in bytes.
fEncoded block bytes to check/copy.
flLength of f in bytes.
rsa_lenRSA modulus size in bytes (expected encoded length).