TianoCore EDK2 master
Loading...
Searching...
No Matches
ConstantTimeClock.c File Reference
#include <CrtLibSupport.h>

Go to the source code of this file.

Functions

time_t time (time_t *timer)
 
struct tmgmtime (const time_t *timer)
 
time_t mktime (struct tm *t)
 
unsigned int sleep (unsigned int seconds)
 
int gettimeofday (struct timeval *tv, struct timezone *tz)
 

Variables

long timezone
 

Detailed Description

C Run-Time Libraries (CRT) Time Management Routines Wrapper Implementation for OpenSSL-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) 2010 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ConstantTimeClock.c.

Function Documentation

◆ gettimeofday()

int gettimeofday ( struct timeval tv,
struct timezone *  tz 
)

Definition at line 63 of file ConstantTimeClock.c.

◆ gmtime()

struct tm * gmtime ( const time_t *  timer)

Definition at line 39 of file ConstantTimeClock.c.

◆ mktime()

time_t mktime ( struct tm t)

Definition at line 47 of file ConstantTimeClock.c.

◆ sleep()

unsigned int sleep ( unsigned int  seconds)

Definition at line 55 of file ConstantTimeClock.c.

◆ time()

time_t time ( time_t *  timer)

Definition at line 27 of file ConstantTimeClock.c.

Variable Documentation

◆ timezone

long timezone

Definition at line 73 of file ConstantTimeClock.c.