1#ifndef MBEDCRYPTO_COMPAT_H
2#define MBEDCRYPTO_COMPAT_H
8#include <mbedtls/version.h>
9#include <mbedtls/cipher.h>
10#ifdef MBEDTLS_VERSION_MAJOR
11#if MBEDTLS_VERSION_MAJOR < 3
13static inline size_t mbedtls_cipher_info_get_key_bitlen(
14 const mbedtls_cipher_info_t *info)
19 return info->key_bitlen;
22static inline size_t mbedtls_cipher_info_get_iv_size(
23 const mbedtls_cipher_info_t *info)
28 return (
size_t)info->iv_size;
31#define MBEDTLS_PRIVATE(X) X
34#include <mbedtls/build_info.h>
35#if MBEDTLS_VERSION_MAJOR < 3
36#define MBEDTLS_PRIVATE(X) X