1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
3 #include "tomcrypt_private.h"
4 
5 /**
6   @file der_length_boolean.c
7   ASN.1 DER, get length of a BOOLEAN, Tom St Denis
8 */
9 
10 #ifdef LTC_DER
11 /**
12   Gets length of DER encoding of a BOOLEAN
13   @param outlen [out] The length of the DER encoding
14   @return CRYPT_OK if successful
15 */
der_length_boolean(unsigned long * outlen)16 int der_length_boolean(unsigned long *outlen)
17 {
18    LTC_ARGCHK(outlen != NULL);
19    *outlen = 3;
20    return CRYPT_OK;
21 }
22 
23 #endif
24