Skip to content

Commit 872d368

Browse files
manastasovajakemas
andauthored
Apply suggestions from code review
Fix alignment Co-authored-by: Jake Massimo <[email protected]>
1 parent 680dd43 commit 872d368

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crypto/fipsmodule/sha/internal.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,11 @@ int SHAKE_Final(uint8_t *md, KECCAK1600_CTX *ctx, size_t len);
408408
void SHA3_Reset(KECCAK1600_CTX *ctx);
409409

410410
// SHA3_Init initialises |ctx| fields and returns 1 on success and 0 on failure.
411-
OPENSSL_EXPORT int SHA3_Init(KECCAK1600_CTX *ctx, uint8_t pad,
412-
size_t bitlen);
411+
OPENSSL_EXPORT int SHA3_Init(KECCAK1600_CTX *ctx, uint8_t pad, size_t bitlen);
413412

414413
// SHA3_Update processes all data blocks that don't need pad through
415414
// |Keccak1600_Absorb| and returns 1 and 0 on failure.
416-
int SHA3_Update(KECCAK1600_CTX *ctx, const void *data,
417-
size_t len);
415+
int SHA3_Update(KECCAK1600_CTX *ctx, const void *data, size_t len);
418416

419417
// SHA3_Final pads the last data block and processes it through |Keccak1600_Absorb|.
420418
// It processes the data through |Keccak1600_Squeeze| and returns 1 and 0 on failure.
@@ -423,7 +421,7 @@ int SHA3_Final(uint8_t *md, KECCAK1600_CTX *ctx);
423421
// Keccak1600_Absorb processes the largest multiple of |r| out of |len| bytes and
424422
// returns the remaining number of bytes.
425423
size_t Keccak1600_Absorb(uint64_t A[KECCAK1600_ROWS][KECCAK1600_ROWS],
426-
const uint8_t *data, size_t len, size_t r);
424+
const uint8_t *data, size_t len, size_t r);
427425

428426
// Keccak1600_Squeeze generates |out| value of |len| bytes (per call). It can be called
429427
// multiple times when used as eXtendable Output Function. |padded| indicates

0 commit comments

Comments
 (0)