TianoCore EDK2 master
Loading...
Searching...
No Matches
CrtWrapper.c File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <stdio.h>
#include <Library/MemoryAllocationLib.h>

Go to the source code of this file.

Data Structures

struct  CRYPTMEM_HEAD
 

Macros

#define CRYPTMEM_HEAD_SIGNATURE   SIGNATURE_32('c','m','h','d')
 
#define CRYPTMEM_OVERHEAD   sizeof(CRYPTMEM_HEAD)
 

Functions

int my_snprintf (char *str, size_t size, const char *format,...)
 
void * mbedtls_calloc (size_t num, size_t size)
 
void mbedtls_free (void *ptr)
 

Detailed Description

C Run-Time Libraries (CRT) Wrapper Implementation for MbedTLS-based Cryptographic Library.

Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CrtWrapper.c.

Macro Definition Documentation

◆ CRYPTMEM_HEAD_SIGNATURE

#define CRYPTMEM_HEAD_SIGNATURE   SIGNATURE_32('c','m','h','d')

Definition at line 32 of file CrtWrapper.c.

◆ CRYPTMEM_OVERHEAD

#define CRYPTMEM_OVERHEAD   sizeof(CRYPTMEM_HEAD)

Definition at line 39 of file CrtWrapper.c.

Function Documentation

◆ mbedtls_calloc()

void * mbedtls_calloc ( size_t  num,
size_t  size 
)

Definition at line 47 of file CrtWrapper.c.

◆ mbedtls_free()

void mbedtls_free ( void *  ptr)

Definition at line 81 of file CrtWrapper.c.

◆ my_snprintf()

int my_snprintf ( char *  str,
size_t  size,
const char *  format,
  ... 
)

Definition at line 19 of file CrtWrapper.c.