Logo Search packages:      
Sourcecode: libtomcrypt version File versions  Download package

int(* ltc_math_descriptor::rsa_me)(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, int which, rsa_key *key)

RSA exponentiation

Parameters:
in The octet array representing the base
inlen The length of the input
out The destination (to be stored in an octet array format)
outlen The length of the output buffer and the resulting size (zero padded to the size of the modulus)
which PK_PUBLIC for public RSA and PK_PRIVATE for private RSA
key The RSA key to use
Returns:
CRYPT_OK on success


Generated by  Doxygen 1.6.0   Back to index