]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c
CryptoPkg: Apply uncrustify changes
[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
27 time (
28 time_t *timer
29 )
30 {
31 if (timer != NULL) {
32 *timer = 0;
33 }
34
35 return 0;
36 }
37
38 struct tm *
39 gmtime (
40 const time_t *timer
41 )
42 {
43 return NULL;
44 }