Mercurial > dropbear
comparison libtomcrypt/src/pk/pkcs1/pkcs_1_i2osp.c @ 1511:5916af64acd4 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 17 Feb 2018 19:29:51 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1457:32f990cc96b1 | 1511:5916af64acd4 |
---|---|
3 * LibTomCrypt is a library that provides various cryptographic | 3 * LibTomCrypt is a library that provides various cryptographic |
4 * algorithms in a highly modular and flexible manner. | 4 * algorithms in a highly modular and flexible manner. |
5 * | 5 * |
6 * The library is free for all purposes without any express | 6 * The library is free for all purposes without any express |
7 * guarantee it works. | 7 * guarantee it works. |
8 * | |
9 * Tom St Denis, [email protected], http://libtom.org | |
10 */ | 8 */ |
11 #include "tomcrypt.h" | 9 #include "tomcrypt.h" |
12 | 10 |
13 /** | 11 /** |
14 @file pkcs_1_i2osp.c | 12 @file pkcs_1_i2osp.c |
15 Integer to Octet I2OSP, Tom St Denis | 13 Integer to Octet I2OSP, Tom St Denis |
16 */ | 14 */ |
17 | 15 |
18 #ifdef LTC_PKCS_1 | 16 #ifdef LTC_PKCS_1 |
19 | 17 |
20 /* always stores the same # of bytes, pads with leading zero bytes | 18 /* always stores the same # of bytes, pads with leading zero bytes |
21 as required | 19 as required |
22 */ | 20 */ |
23 | 21 |
24 /** | 22 /** |
25 LTC_PKCS #1 Integer to binary | 23 PKCS #1 Integer to binary |
26 @param n The integer to store | 24 @param n The integer to store |
27 @param modulus_len The length of the RSA modulus | 25 @param modulus_len The length of the RSA modulus |
28 @param out [out] The destination for the integer | 26 @param out [out] The destination for the integer |
29 @return CRYPT_OK if successful | 27 @return CRYPT_OK if successful |
30 */ | 28 */ |
44 } | 42 } |
45 | 43 |
46 #endif /* LTC_PKCS_1 */ | 44 #endif /* LTC_PKCS_1 */ |
47 | 45 |
48 | 46 |
49 /* $Source$ */ | 47 /* ref: $Format:%D$ */ |
50 /* $Revision$ */ | 48 /* git commit: $Format:%H$ */ |
51 /* $Date$ */ | 49 /* commit time: $Format:%ai$ */ |