1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
6
* The library is free for all purposes without any express
9
* Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.org
15
Octet to Integer OS2IP, Tom St Denis
20
Read a binary string into an mp_int
21
@param n [out] The mp_int destination
22
@param in The binary string to read
23
@param inlen The length of the binary string
24
@return CRYPT_OK if successful
26
int pkcs_1_os2ip(mp_int *n, unsigned char *in, unsigned long inlen)
30
if ((err = mp_read_unsigned_bin(n, in, inlen)) != MP_OKAY) {
31
return mpi_to_ltc_error(err);
39
/* $Source: /cvs/libtom/libtomcrypt/src/pk/pkcs1/pkcs_1_os2ip.c,v $ */
40
/* $Revision: 1.3 $ */
41
/* $Date: 2005/05/05 14:35:59 $ */