mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
11 lines
No EOL
231 B
C
11 lines
No EOL
231 B
C
#include "sha_pad_buffer.h"
|
|
#include <string.h>
|
|
|
|
void sha_pad_buffer(uint8_t* buffer, size_t size) {
|
|
if(size > 0) {
|
|
buffer[0] = 0x80;
|
|
if(size > 1) {
|
|
memset(&buffer[1], 0, size - 1);
|
|
}
|
|
}
|
|
} |