Skip to content

Commit c04b66d

Browse files
committed
Review Comments addressed
Signed-off-by: Robin Dubey <[email protected]>
1 parent cd01a75 commit c04b66d

File tree

7 files changed

+13
-34
lines changed

7 files changed

+13
-34
lines changed

icc/TRNG/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ TARGETS = \
5858
MINIMAL$(OBJSUFX) \
5959
TRNG$(OBJSUFX) \
6060
TRNG_ALT$(OBJSUFX) \
61-
TRNG_ALT2$(OBJSUFX) \
6261
entropy_to_NRBG$(OBJSUFX) \
6362
SP800-90TRNG$(OBJSUFX)
6463

@@ -87,7 +86,7 @@ clean:
8786
#- Note some platforms, SUN_SOL8/SUN64 AIX/AIX64 need added assembler tweaks
8887
#
8988
entropy_to_NRBG$(OBJSUFX): entropy_to_NRBG.h noise_to_entropy.h \
90-
MINIMAL.h TRNG.h TRNG_ALT.h TRNG_ALT2.h
89+
MINIMAL.h TRNG.h TRNG_ALT.h
9190
$(CC) $(CFLAGS) $(HDRS) $(ASM_TWEAKS) entropy_to_NRBG.c
9291

9392
nist_algs$(OBJSUFX): nist_algs.c nist_algs.h
@@ -114,10 +113,7 @@ TRNG$(OBJSUFX): TRNG.c TRNG.h timer_entropy.h
114113
TRNG_ALT$(OBJSUFX): TRNG.c TRNG.h TRNG_ALT.h timer_entropy.h
115114
$(CC) $(CFLAGS) $(HDRS) TRNG_ALT.c
116115

117-
TRNG_ALT2$(OBJSUFX): TRNG_ALT2.c timer_entropy.h ../fips-prng/SP800-90.h TRNG.h TRNG_ALT2.h
118-
$(CC) $(CFLAGS) $(HDRS) TRNG_ALT2.c
119-
120-
ICC_NRBG$(OBJSUFX): ICC_NRBG.c MINIMAL.h TRNG.h TRNG_ALT.h TRNG_ALT2.h
116+
ICC_NRBG$(OBJSUFX): ICC_NRBG.c MINIMAL.h TRNG.h TRNG_ALT.h
121117
$(CC) $(CFLAGS) $(HDRS) ICC_NRBG.c
122118

123119
SP800-90TRNG$(OBJSUFX): ../fips-prng/SP800-90.h ../fips-prng/SP800-90i.h

icc/functions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ OPENSSLPREFIX=;
795795
#! @param callback Feedback for a progress indicator. See the OpenSSL docs. Typically, set this to NULL.;
796796
#! @param cb_arg Information to be passed to the callback method when it is called. Typically, set this to NULL;
797797
#! @return an pointer to a newly allocated RSA structure containing both the public and private RSA keys or NULL on failure;
798-
#! @note The callback and cb_arg parameters should be set to NULL in IBM applications. ;
799-
#! While in theory these paramaters could be used we can envisage no IBM application scenario ;
798+
#! @note The callback and cb_arg parameters should be set to NULL for ICC consumers. ;
799+
#! While in theory these paramaters could be used we can envisage no ICC consumer scenario ;
800800
#! where it would be useful to set these to non-NULL values ;
801801

802802
0abcdEPMC RSA * RSA_generate_key(int bits, unsigned long e,void (*callback)(int,int,void *),void *cb_arg);

icc/icc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/*************************************************************************
8-
// Copyright IBM Corp. 2023, 2025
8+
// Copyright IBM Corp. 2023
99
//
1010
// Licensed under the Apache License 2.0 (the "License"). You may not use
1111
// this file except in compliance with the License. You can obtain a copy

icc/icc_defs.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DEFAULT_TEST_CMD = ./icctest$(EXESUFX)
1717
DEFAULT_OPENSSL_TEST_CMD = cd $(OSSL_DIR); make tests; apps/openssl speed
1818
# This is actually used to build an rc file on Windows
1919
DEFAULT_ASMOBJS =
20-
DEFAULT_EXTRAS = PKCS11 PKCS11_PERF
20+
DEFAULT_EXTRAS =
2121
DEFAULT_debug_FILES = icclib$(VTAG).pdb openssl.pdb vc90.pdb \
2222
$(OSSL_DIR)/out32dll/libeay32.pdb
2323
DEFAULT_MANIFESTS =
@@ -279,7 +279,7 @@ WIN32_TEST_CMD = $(DEFAULT_TEST_CMD)
279279
WIN32_OPENSSL_TEST_CMD = echo openssl tests not run
280280
# This is actually used to build an rc file on Windows
281281
WIN32_ASMOBJS = icc.res
282-
WIN32_EXTRAS = PKCS11 PKCS11_PERF
282+
WIN32_EXTRAS =
283283
WIN32_debug_FILES = icclib$(VTAG).pdb openssl.pdb vc90.pdb \
284284
$(OSSL_DIR)/out32dll/libeay32.pdb
285285
WIN32_MANIFESTS =
@@ -332,7 +332,7 @@ WIN32_VS2013_TEST_CMD = $(WIN32_TEST_CMD)
332332
WIN32_VS2013_OPENSSL_TEST_CMD = $(WIN32_OPENSSL_TEST_CMD)
333333
# This is actually used to build an rc file on Windows
334334
WIN32_VS2013_ASMOBJS = icc.res
335-
WIN32_VS2013_EXTRAS = PKCS11 PKCS11_PERF
335+
WIN32_VS2013_EXTRAS = $(WIN32_EXTRAS)
336336
WIN32_VS2013_debug_FILES = icclib$(VTAG).pdb openssl.pdb vc90.pdb \
337337
$(OSSL_DIR)/out32dll/libeay32.pdb
338338
WIN32_VS2013_MANIFESTS =
@@ -414,7 +414,7 @@ LINUX_OPENSSL_PATH_SETUP = export LD_LIBRARY_PATH=$(OSSL_DIR);
414414
LINUX_BUILD_OSSL = cd $(OSSL_DIR); ./Configure threads shared $(OSSL_FLAGS) $(LINUX_$(CONFIG)_CFLAGS) -m32 linux-elf; make depend; make
415415
LINUX_CLEAN_OSSL = cd $(OSSL_DIR); make clean
416416
LINUX_TEST_CMD = $(DEFAULT_TEST_CMD)
417-
LINUX_EXTRAS = PKCS11 PKCS11_PERF
417+
# LINUX_EXTRAS = PKCS11 PKCS11_PERF
418418

419419
LINUX_CMAKE_OQS = cmake -G "Unix Makefiles" $(OQS_FLAGS) -DBUILD_ONLY="s3;iam;sts" -DCMAKE_C_FLAGS=-m32 .
420420

icc/iccglobals.h

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -412,23 +412,10 @@ typedef enum {
412412
default entropy source is unusable, most likely
413413
a virtualized system or new hardware.
414414
- Valid values: (<b>R/W1</b>)
415-
- "TRNG" (default) . Uses timing jitter. Tuned on startup to
416-
optimize performance.
417-
- "TRNG_ALT" Timing jitter mixed with an external source
418-
- If a hardware RNG is available, it will be used, otherwise
419-
- Unix/Linux it requires /dev/urandom or /dev/random
420-
- On Windows MSCAPI is used,
421-
- FIPS: allowed in FIPS mode
422-
- Reason: ALL modes meet FIPS requirements as entropy sources,
423-
and offline testing show they are of equivalent strength.
424-
- "TRNG" is in theory more resistant
425-
to local timing attacks and compromises of the extern RNG's
426-
than "TRNG_ALT" but neither class of attack is
427-
possible if the environmental constraints on FIPS compliance
428-
are valid. i.e. single user mode
429-
- TRNG_ALT with hardware RNG is theoretically better on
430-
virtualized systems.
431-
*/
415+
- "TRNG_HW" (default)
416+
- "TRNG_OS"
417+
- "TRNG_FIPS"
418+
*/
432419
ICC_INDUCED_FAILURE = 11, /*!< Set to an active value (>0)
433420
before ICC_Init is called for the first time
434421
this will force errors in ICC.

icc/platforms/1.1.1/API/aes_gcm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// this file except in compliance with the License. You can obtain a copy
77
// in the file LICENSE in the source distribution.
88
*************************************************************************/
9-
/* GCM table driven acceleration: Aaron Cristensen November 2007. */
10-
119

1210
#ifndef HEADER_AES_GCM_H
1311
#define HEADER_AES_GCM_H

icc/platforms/1.1.1/BASE_OSSL_FILES.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
ICC_RAND_OBJ = icc_rand$(OBJSUFX)
3-
42
#
53
# Extra code needed to maintain API compatibility with older ICC's
64
# we used to patch OpenSSL to do this, but now everything resides

0 commit comments

Comments
 (0)