Skip to content

Commit fa3d63a

Browse files
committed
Copyright and Indentation fixes
Signed-off-by: Robin Dubey <[email protected]>
1 parent 193bb9c commit fa3d63a

File tree

22 files changed

+75
-54
lines changed

22 files changed

+75
-54
lines changed

icc/DELTA/exports/icclib_zos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
// Copyright IBM Corp. 2023
33
//
4-
// Licensed under the Apache License 2.0 (the "License").  You may not use
5-
// this file except in compliance with the License.  You can obtain a copy
4+
// Licensed under the Apache License 2.0 (the "License"). You may not use
5+
// this file except in compliance with the License. You can obtain a copy
66
// in the file LICENSE in the source distribution.
77
*/
88
/* z/OS pragma's to control symbol visbility */

icc/DepScanner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// in the file LICENSE in the source distribution.
77
*************************************************************************/
88

9-
/*************************************************************************
9+
//
1010
// Description:
1111
//
1212
// Input: functions.txt, symbols.txt
@@ -18,8 +18,8 @@
1818
// to produce a makefile stub which
1919
// includes only those objects ICC depends on directly or
2020
// indirectly to function. i.e. we produce a list of objects
21-
// excluding "dead code"
22-
*************************************************************************/
21+
// excluding "dead code"
22+
//
2323

2424

2525
/* TBD

icc/SP800_108/SP800-108.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//
1212
*************************************************************************/
1313

14+
1415
#if !defined(SP800_108_H)
1516
#define SP800_108_H
1617

icc/TRNG/ICC_NRBG.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ TRNG_TYPE GetDefaultTrng()
435435
if (TRNG_FIPS != global_trng_type) {
436436
if (ALT4_Avail()) {
437437
MARK("Found, switching to TRNG_HW", "");
438-
global_trng_type = TRNG_HW;
438+
global_trng_type = TRNG_HW;
439439
} else {
440440
MARK("TRNG_HW not available, remaining with", TRNG_ARRAY[global_trng_type].name);
441441
}
@@ -444,8 +444,8 @@ TRNG_TYPE GetDefaultTrng()
444444
}
445445
} else {
446446
MARK("User TRNG set, remaining with", TRNG_ARRAY[global_trng_type].name);
447-
}
448-
global_trng_type_attempted_upgrade = 1;
447+
}
448+
global_trng_type_attempted_upgrade = 1;
449449
}
450450

451451
#else /*x86_64, power */

icc/TRNG/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
22
# * Copyright IBM Corp. 2023
33
# *
4-
# * Licensed under the Apache License 2.0 (the "License"). You may not use
5-
# * this file except in compliance with the License. You can obtain a copy
4+
# * Licensed under the Apache License 2.0 (the "License"). You may not use
5+
# * this file except in compliance with the License. You can obtain a copy
66
# * in the file LICENSE in the source distribution.
77
#
88

@@ -58,6 +58,7 @@ TARGETS = \
5858
MINIMAL$(OBJSUFX) \
5959
TRNG$(OBJSUFX) \
6060
TRNG_ALT$(OBJSUFX) \
61+
TRNG_ALT2$(OBJSUFX) \
6162
entropy_to_NRBG$(OBJSUFX) \
6263
SP800-90TRNG$(OBJSUFX)
6364

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

9293
nist_algs$(OBJSUFX): nist_algs.c nist_algs.h
@@ -113,7 +114,10 @@ TRNG$(OBJSUFX): TRNG.c TRNG.h timer_entropy.h
113114
TRNG_ALT$(OBJSUFX): TRNG.c TRNG.h TRNG_ALT.h timer_entropy.h
114115
$(CC) $(CFLAGS) $(HDRS) TRNG_ALT.c
115116

116-
ICC_NRBG$(OBJSUFX): ICC_NRBG.c MINIMAL.h TRNG.h TRNG_ALT.h
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
117121
$(CC) $(CFLAGS) $(HDRS) ICC_NRBG.c
118122

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

icc/TRNG/TRNG_ALT.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static int alt_read(unsigned char *buffer,int n)
9797
if(!BCRYPT_SUCCESS(status)) {
9898
rv = TRNG_REQ_SIZE; /* One of the parameters was likely not correct, or bad provider */
9999
}
100-
}
100+
}
101101
#endif
102102
break;
103103
default:
@@ -139,7 +139,7 @@ TRNG_ERRORS ALT_Init(E_SOURCE *E, unsigned char *pers, int perl)
139139
} else {
140140
rv = TRNG_INIT; /*error*/
141141
}
142-
}
142+
}
143143
#else
144144
/* On Unix .... */
145145
fd_alt = open("/dev/urandom",O_RDONLY);
@@ -218,9 +218,9 @@ void ALT_Final()
218218
hProvider = 0;
219219
}
220220
#else
221-
if(fd_alt >= 0) {
221+
if(fd_alt >= 0) {
222222
close(fd_alt);
223223
fd_alt = -1;
224-
}
225-
#endif
224+
}
225+
#endif
226226
}

icc/TRNG/personalise.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*************************************************************************
22
// Copyright IBM Corp. 2023
33
//
4-
// Licensed under the Apache License 2.0 (the "License").  You may not use
5-
// this file except in compliance with the License.  You can obtain a copy
4+
// Licensed under the Apache License 2.0 (the "License"). You may not use
5+
// this file except in compliance with the License. You can obtain a copy
66
// in the file LICENSE in the source distribution.
77
*************************************************************************/
88
#if !defined(PERSONALISE_H)

icc/TRNG/timer_fips.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ int FIPS_getbytes(E_SOURCE *E, unsigned char *buffer, int len)
384384
/* Try and construct a byte of data from what was captured */
385385
buffer[count] = c;
386386
count++;
387-
proc_mem(TF,c);
388-
}
387+
proc_mem(TF,c);
388+
}
389389
}
390390
if(count == E_ESTB_BUFLEN) {
391391
/*! \induced 222. TRNG_FIPS. Fake failure of TRNG source */

icc/asm/aix32/rng-ppc.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#;-*- asm -*------------------------------------------------------------
22
#; Copyright IBM Corp. 2023
33
#;
4-
#; Licensed under the Apache License 2.0 (the "License").  You may not use
5-
#; this file except in compliance with the License.  You can obtain a copy
4+
#; Licensed under the Apache License 2.0 (the "License"). You may not use
5+
#; this file except in compliance with the License. You can obtain a copy
66
#; in the file LICENSE in the source distribution.
77
#;----------------------------------------------------------------:-)---
88

icc/getnmi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*************************************************************************
22
// Copyright IBM Corp. 2023
33
//
4-
// Licensed under the Apache License 2.0 (the "License").  You may not use
5-
// this file except in compliance with the License.  You can obtain a copy
4+
// Licensed under the Apache License 2.0 (the "License"). You may not use
5+
// this file except in compliance with the License. You can obtain a copy
66
// in the file LICENSE in the source distribution.
77
*************************************************************************/
88

0 commit comments

Comments
 (0)