RSA_padding_add_X931

Apply ANSI X9.31 padding to a message block (deprecated).

Synopsis

Declared in <openssl/rsa.h>

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
toDestination encoded block of length tlen.
tlenRSA modulus size in bytes.
fMessage / hash bytes to pad.
flLength of f in bytes.