TianoCore EDK2 master
Loading...
Searching...
No Matches
ConstantTimeClock.c File Reference
#include <Base.h>
#include <Library/BaseMemoryLib.h>

Go to the source code of this file.

Data Structures

struct  tm
 

Typedefs

typedef int time_t
 

Functions

time_t time (time_t *timer)
 
struct tmgmtime (const time_t *timer)
 
time_t _time64 (time_t *t)
 

Detailed Description

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

This C file implements constant time value for time() and NULL for gmtime() thus should not be used in library instances which require functionality of following APIs which need system time support: 1) RsaGenerateKey 2) RsaCheckKey 3) RsaPkcs1Sign 4) Pkcs7Sign 5) DhGenerateParameter 6) DhGenerateKey

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

Definition in file ConstantTimeClock.c.

Typedef Documentation

◆ time_t

typedef int time_t

Definition at line 23 of file ConstantTimeClock.c.

Function Documentation

◆ _time64()

time_t _time64 ( time_t *  t)

_time64 function.

Definition at line 70 of file ConstantTimeClock.c.

◆ gmtime()

struct tm * gmtime ( const time_t *  timer)

gmtime function.

Definition at line 61 of file ConstantTimeClock.c.

◆ time()

time_t time ( time_t *  timer)

time function.

Definition at line 48 of file ConstantTimeClock.c.