comparison libtomcrypt/src/pk/asn1/der/octet/der_length_octet_string.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
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_octet_string.c 12 @file der_length_octet_string.c
15 ASN.1 DER, get length of OCTET STRING, Tom St Denis 13 ASN.1 DER, get length of OCTET STRING, Tom St Denis
16 */ 14 */
17 15
18 #ifdef LTC_DER 16 #ifdef LTC_DER
19 /** 17 /**
20 Gets length of DER encoding of OCTET STRING 18 Gets length of DER encoding of OCTET STRING
21 @param noctets The number of octets in the string to encode 19 @param noctets The number of octets in the string to encode
22 @param outlen [out] The length of the DER encoding for the given string 20 @param outlen [out] The length of the DER encoding for the given string
23 @return CRYPT_OK if successful 21 @return CRYPT_OK if successful
24 */ 22 */
25 int der_length_octet_string(unsigned long noctets, unsigned long *outlen) 23 int der_length_octet_string(unsigned long noctets, unsigned long *outlen)
46 } 44 }
47 45
48 #endif 46 #endif
49 47
50 48
51 /* $Source$ */ 49 /* ref: $Format:%D$ */
52 /* $Revision$ */ 50 /* git commit: $Format:%H$ */
53 /* $Date$ */ 51 /* commit time: $Format:%ai$ */