1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
3 #include "tomcrypt_private.h"
4
5 /**
6 @file pkcs_1_os2ip.c
7 Octet to Integer OS2IP, Tom St Denis
8 */
9 #ifdef LTC_PKCS_1
10
11 /**
12 Read a binary string into an mp_int
13 @param n [out] The mp_int destination
14 @param in The binary string to read
15 @param inlen The length of the binary string
16 @return CRYPT_OK if successful
17 */
pkcs_1_os2ip(void * n,unsigned char * in,unsigned long inlen)18 int pkcs_1_os2ip(void *n, unsigned char *in, unsigned long inlen)
19 {
20 return mp_read_unsigned_bin(n, in, inlen);
21 }
22
23 #endif /* LTC_PKCS_1 */
24
25