1 // SPDX-License-Identifier: BSD-2-Clause
2 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 *
4 * LibTomCrypt is a library that provides various cryptographic
5 * algorithms in a highly modular and flexible manner.
6 *
7 * The library is free for all purposes without any express
8 * guarantee it works.
9 */
10 #include "tomcrypt_private.h"
11
12 /**
13 @file pkcs_1_os2ip.c
14 Octet to Integer OS2IP, Tom St Denis
15 */
16 #ifdef LTC_PKCS_1
17
18 /**
19 Read a binary string into an mp_int
20 @param n [out] The mp_int destination
21 @param in The binary string to read
22 @param inlen The length of the binary string
23 @return CRYPT_OK if successful
24 */
pkcs_1_os2ip(void * n,unsigned char * in,unsigned long inlen)25 int pkcs_1_os2ip(void *n, unsigned char *in, unsigned long inlen)
26 {
27 return mp_read_unsigned_bin(n, in, inlen);
28 }
29
30 #endif /* LTC_PKCS_1 */
31
32
33 /* ref: $Format:%D$ */
34 /* git commit: $Format:%H$ */
35 /* commit time: $Format:%ai$ */
36