Skip to content

Commit 63d65a3

Browse files
committedMar 20, 2025
style: clean up whitespace and formatting in cshake and sp800_185 files
1 parent ffee5be commit 63d65a3

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed
 

‎ext/sha3/cshake.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,10 @@ static VALUE rb_sha3_cshake_hexdigest(int argc, VALUE *argv, VALUE self) {
348348
get_cshake_context(self, &context);
349349

350350
VALUE data = argc > 0 ? argv[0] : Qnil;
351-
351+
352352
return sp800_185_hexdigest(context, data);
353353
}
354354

355-
356355
/*
357356
* :call-seq:
358357
* squeeze(length) -> string

‎ext/sha3/sp800_185.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#include "sha3.h"
44

5-
6-
75
/*** Function table for SP800-185 algorithms ***/
86
sp800_185_function_table_t sp800_185_functions[] = {{.algorithm = SP800_185_CSHAKE_128,
97
.name = "CSHAKE128",
@@ -45,7 +43,7 @@ sp800_185_context_t *sp800_185_alloc_context(size_t context_size, size_t state_s
4543
return NULL;
4644
}
4745

48-
context->error_class = Qnil; // Initialize error class to nil
46+
context->error_class = Qnil; // Initialize error class to nil
4947

5048
return context;
5149
}

‎ext/sha3/sp800_185.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ typedef enum {
2020
} sp800_185_algorithm_t;
2121

2222
/* Common function pointer typedefs for SP800-185 algorithms */
23-
typedef int (*sp800_185_init_fn)(void *state, size_t capacity, const BitSequence *N, size_t NLen,
24-
const BitSequence *S, size_t SLen);
23+
typedef int (*sp800_185_init_fn)(void *state, size_t capacity, const BitSequence *N, size_t NLen, const BitSequence *S,
24+
size_t SLen);
2525

2626
typedef int (*sp800_185_init_key_fn)(void *state, const BitSequence *key, BitLength keyBitLen, BitLength outputBitLen,
2727
const BitSequence *customization, BitLength customBitLen);

0 commit comments

Comments
 (0)
Please sign in to comment.