Mercurial > dropbear
comparison libtomcrypt/src/pk/asn1/der/object_identifier/der_length_object_identifier.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 der_length_object_identifier.c | 12 @file der_length_object_identifier.c |
30 } | 28 } |
31 | 29 |
32 | 30 |
33 /** | 31 /** |
34 Gets length of DER encoding of Object Identifier | 32 Gets length of DER encoding of Object Identifier |
35 @param nwords The number of OID words | 33 @param nwords The number of OID words |
36 @param words The actual OID words to get the size of | 34 @param words The actual OID words to get the size of |
37 @param outlen [out] The length of the DER encoding for the given string | 35 @param outlen [out] The length of the DER encoding for the given string |
38 @return CRYPT_OK if successful | 36 @return CRYPT_OK if successful |
39 */ | 37 */ |
40 int der_length_object_identifier(unsigned long *words, unsigned long nwords, unsigned long *outlen) | 38 int der_length_object_identifier(unsigned long *words, unsigned long nwords, unsigned long *outlen) |
41 { | 39 { |
42 unsigned long y, z, t, wordbuf; | 40 unsigned long y, z, t, wordbuf; |
43 | 41 |
44 LTC_ARGCHK(words != NULL); | 42 LTC_ARGCHK(words != NULL); |
45 LTC_ARGCHK(outlen != NULL); | 43 LTC_ARGCHK(outlen != NULL); |
46 | 44 |
47 | 45 |
82 return CRYPT_OK; | 80 return CRYPT_OK; |
83 } | 81 } |
84 | 82 |
85 #endif | 83 #endif |
86 | 84 |
87 /* $Source$ */ | 85 /* ref: $Format:%D$ */ |
88 /* $Revision$ */ | 86 /* git commit: $Format:%H$ */ |
89 /* $Date$ */ | 87 /* commit time: $Format:%ai$ */ |