]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c
CryptoPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / SysCall / ConstantTimeClock.c
1 /** @file
2 C Run-Time Libraries (CRT) Time Management Routines Wrapper Implementation
3 for OpenSSL-based Cryptographic Library.
4
5 This C file implements constant time value for time() and NULL for gmtime()
6 thus should not be used in library instances which require functionality
7 of following APIs which need system time support:
8 1) RsaGenerateKey
9 2) RsaCheckKey
10 3) RsaPkcs1Sign
11 4) Pkcs7Sign
12 5) DhGenerateParameter
13 6) DhGenerateKey
14
15 Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
16 SPDX-License-Identifier: BSD-2-Clause-Patent
17
18 **/
19
20 #include <CrtLibSupport.h>
21
22 //
23 // -- Time Management Routines --
24 //
25
26 time_t time (time_t *timer)
27 {
28 if (timer != NULL) {
29 *timer = 0;
30 }
31 return 0;
32 }
33
34 struct tm * gmtime (const time_t *timer)
35 {
36 return NULL;
37 }