Mercurial > dropbear
comparison libtomcrypt/src/pk/rsa/rsa_export.c @ 1439:8d24733026c5 coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 23:33:16 +0800 |
parents | f849a5ca2efc |
children | 6dba84798cd5 |
comparison
equal
deleted
inserted
replaced
1400:238a439670f5 | 1439:8d24733026c5 |
---|---|
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 * | 8 * |
9 * Tom St Denis, [email protected], http://libtomcrypt.com | 9 * Tom St Denis, [email protected], http://libtom.org |
10 */ | 10 */ |
11 #include "tomcrypt.h" | 11 #include "tomcrypt.h" |
12 | 12 |
13 /** | 13 /** |
14 @file rsa_export.c | 14 @file rsa_export.c |
15 Export RSA PKCS keys, Tom St Denis | 15 Export RSA LTC_PKCS keys, Tom St Denis |
16 */ | 16 */ |
17 | 17 |
18 #ifdef MRSA | 18 #ifdef LTC_MRSA |
19 | 19 |
20 /** | 20 /** |
21 This will export either an RSAPublicKey or RSAPrivateKey [defined in PKCS #1 v2.1] | 21 This will export either an RSAPublicKey or RSAPrivateKey [defined in LTC_PKCS #1 v2.1] |
22 @param out [out] Destination of the packet | 22 @param out [out] Destination of the packet |
23 @param outlen [in/out] The max size and resulting size of the packet | 23 @param outlen [in/out] The max size and resulting size of the packet |
24 @param type The type of exported key (PK_PRIVATE or PK_PUBLIC) | 24 @param type The type of exported key (PK_PRIVATE or PK_PUBLIC) |
25 @param key The RSA key to export | 25 @param key The RSA key to export |
26 @return CRYPT_OK if successful | 26 @return CRYPT_OK if successful |
60 LTC_ASN1_INTEGER, 1UL, key->e, | 60 LTC_ASN1_INTEGER, 1UL, key->e, |
61 LTC_ASN1_EOL, 0UL, NULL); | 61 LTC_ASN1_EOL, 0UL, NULL); |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 #endif /* MRSA */ | 65 #endif /* LTC_MRSA */ |
66 | 66 |
67 /* $Source: /cvs/libtom/libtomcrypt/src/pk/rsa/rsa_export.c,v $ */ | 67 /* $Source$ */ |
68 /* $Revision: 1.15 $ */ | 68 /* $Revision$ */ |
69 /* $Date: 2006/03/31 14:15:35 $ */ | 69 /* $Date$ */ |