Name

rsa_encipher

Synopsis

void rsa_encipher(Huge plaintext, Huge *ciphertext, RsaPubKey pubkey);

Return Value

None.

Description

Uses RSA to encipher one block of plaintext specified by plaintext. Specify the public key (e, n) in the RsaPubKey structure pubkey. A block the same size as plaintext is returned in ciphertext. It is the responsibility of the caller to manage the storage required in ciphertext. To encipher a large buffer of data, call rsa_encipher in accordance with a block cipher mode (see the example earlier in this chapter).

Complexity

O (1)

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset