Path: blob/master/libs/tomcrypt/src/pk/pkcs1/pkcs_1_os2ip.c
4396 views
/* LibTomCrypt, modular cryptographic library -- Tom St Denis1*2* LibTomCrypt is a library that provides various cryptographic3* algorithms in a highly modular and flexible manner.4*5* The library is free for all purposes without any express6* guarantee it works.7*/8#include "tomcrypt.h"910/**11@file pkcs_1_os2ip.c12Octet to Integer OS2IP, Tom St Denis13*/14#ifdef LTC_PKCS_11516/**17Read a binary string into an mp_int18@param n [out] The mp_int destination19@param in The binary string to read20@param inlen The length of the binary string21@return CRYPT_OK if successful22*/23int pkcs_1_os2ip(void *n, unsigned char *in, unsigned long inlen)24{25return mp_read_unsigned_bin(n, in, inlen);26}2728#endif /* LTC_PKCS_1 */293031