Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/tomcrypt/src/pk/pkcs1/pkcs_1_os2ip.c
4396 views
1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2
*
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
5
*
6
* The library is free for all purposes without any express
7
* guarantee it works.
8
*/
9
#include "tomcrypt.h"
10
11
/**
12
@file pkcs_1_os2ip.c
13
Octet to Integer OS2IP, Tom St Denis
14
*/
15
#ifdef LTC_PKCS_1
16
17
/**
18
Read a binary string into an mp_int
19
@param n [out] The mp_int destination
20
@param in The binary string to read
21
@param inlen The length of the binary string
22
@return CRYPT_OK if successful
23
*/
24
int pkcs_1_os2ip(void *n, unsigned char *in, unsigned long inlen)
25
{
26
return mp_read_unsigned_bin(n, in, inlen);
27
}
28
29
#endif /* LTC_PKCS_1 */
30
31