quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

md_wrap.h (896B)


      1 /**
      2  * \file md_wrap.h
      3  *
      4  * \brief Message digest wrappers.
      5  *
      6  * \warning This in an internal header. Do not include directly.
      7  *
      8  * \author Adriaan de Jong <dejong@fox-it.com>
      9  */
     10 /*
     11  *  Copyright The Mbed TLS Contributors
     12  *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
     13  */
     14 #ifndef MBEDTLS_MD_WRAP_H
     15 #define MBEDTLS_MD_WRAP_H
     16 
     17 #include "mbedtls/build_info.h"
     18 
     19 #include "mbedtls/md.h"
     20 
     21 #ifdef __cplusplus
     22 extern "C" {
     23 #endif
     24 
     25 /**
     26  * Message digest information.
     27  * Allows message digest functions to be called in a generic way.
     28  */
     29 struct mbedtls_md_info_t {
     30     /** Digest identifier */
     31     mbedtls_md_type_t type;
     32 
     33     /** Output length of the digest function in bytes */
     34     unsigned char size;
     35 
     36 #if defined(MBEDTLS_MD_C)
     37     /** Block length of the digest function in bytes */
     38     unsigned char block_size;
     39 #endif
     40 };
     41 
     42 #ifdef __cplusplus
     43 }
     44 #endif
     45 
     46 #endif /* MBEDTLS_MD_WRAP_H */