]> pd.if.org Git - zpackage/blob - libtomcrypt/src/pk/asn1/der/boolean/der_length_boolean.c
commit files needed for zpm-fetchurl
[zpackage] / libtomcrypt / src / pk / asn1 / der / boolean / der_length_boolean.c
1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
2  *
3  * LibTomCrypt is a library that provides various cryptographic
4  * algorithms in a highly modular and flexible manner.
5  *
6  * The library is free for all purposes without any express
7  * guarantee it works.
8  */
9 #include "tomcrypt.h"
10
11 /**
12   @file der_length_boolean.c
13   ASN.1 DER, get length of a BOOLEAN, Tom St Denis
14 */
15
16 #ifdef LTC_DER
17 /**
18   Gets length of DER encoding of a BOOLEAN
19   @param outlen [out] The length of the DER encoding
20   @return CRYPT_OK if successful
21 */
22 int der_length_boolean(unsigned long *outlen)
23 {
24    LTC_ARGCHK(outlen != NULL);
25    *outlen = 3;
26    return CRYPT_OK;
27 }
28
29 #endif
30
31 /* ref:         $Format:%D$ */
32 /* git commit:  $Format:%H$ */
33 /* commit time: $Format:%ai$ */