summaryrefslogtreecommitdiffstats
path: root/movement/lib/TOTP-MCU/sha1.c
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-05 23:49:26 -0600
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-05 23:49:26 -0600
commite202c48b0a1a9838e91d020ca2b71214119b3c3d (patch)
treeadb63f4f22179d5d28599a6902ba6a91f52c5deb /movement/lib/TOTP-MCU/sha1.c
parented94efcb8559d21820e8a06214e95191eed4c9b3 (diff)
downloadSensor-Watch-e202c48b0a1a9838e91d020ca2b71214119b3c3d.tar.gz
Sensor-Watch-e202c48b0a1a9838e91d020ca2b71214119b3c3d.tar.bz2
Sensor-Watch-e202c48b0a1a9838e91d020ca2b71214119b3c3d.zip
fix missing prototype warnings
Diffstat (limited to 'movement/lib/TOTP-MCU/sha1.c')
-rw-r--r--movement/lib/TOTP-MCU/sha1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/movement/lib/TOTP-MCU/sha1.c b/movement/lib/TOTP-MCU/sha1.c
index 8e918e64..3ac14856 100644
--- a/movement/lib/TOTP-MCU/sha1.c
+++ b/movement/lib/TOTP-MCU/sha1.c
@@ -38,7 +38,7 @@ uint32_t rol32(uint32_t number, uint8_t bits) {
return ((number << bits) | (uint32_t)(number >> (32-bits)));
}
-void hashBlock() {
+void hashBlock(void) {
uint8_t i;
uint32_t a,b,c,d,e,t;
@@ -97,7 +97,7 @@ void writeArray(uint8_t *buffer, uint8_t size){
}
}
-void pad() {
+void pad(void) {
// Implement SHA-1 padding (fips180-2 ��5.1.1)
// Pad with 0x80 followed by 0x00 until the end of the block