]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c
CryptoPkg: Add some comments for API usage clarification.
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / SysCall / ConstantTimeClock.c
CommitLineData
38fcd027 1/** @file\r
2 C Run-Time Libraries (CRT) Time Management Routines Wrapper Implementation\r
3 for OpenSSL-based Cryptographic Library.\r
4\r
5 This C file implements constant time value for time() and NULL for gmtime()\r
6 thus should not be used in library instances which require functionality\r
7 of following APIs which need system time support:\r
8 1) RsaGenerateKey\r
9 2) RsaCheckKey\r
10 3) RsaPkcs1Sign\r
11 4) Pkcs7Sign\r
12 5) DhGenerateParameter\r
13 6) DhGenerateKey\r
14\r
15Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
16This program and the accompanying materials\r
17are licensed and made available under the terms and conditions of the BSD License\r
18which accompanies this distribution. The full text of the license may be found at\r
19http://opensource.org/licenses/bsd-license.php\r
20\r
21THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
22WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
23\r
24**/\r
25\r
26#include <OpenSslSupport.h>\r
27\r
28//\r
29// -- Time Management Routines --\r
30//\r
31\r
32time_t time (time_t *timer)\r
33{\r
34 *timer = 0;\r
35 return *timer;\r
36}\r
37\r
38struct tm * gmtime (const time_t *timer)\r
39{\r
40 return NULL;\r
41}