/* LibTomCrypt, modular cryptographic library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ #include "tomcrypt_private.h" /** @file der_length_asn1_length.c ASN.1 DER, determine the length of the ASN.1 length field, Steffen Jaeckel */ #ifdef LTC_DER /** Determine the length required to encode len in the ASN.1 length field @param len The length to encode @param outlen [out] The length that's required to store len @return CRYPT_OK if successful */ int der_length_asn1_length(unsigned long len, unsigned long *outlen) { return der_encode_asn1_length(len, NULL, outlen); } #endif