cleaned up logs, added 128bit logger started working on second phase of rsa: keygen

This commit is contained in:
2026-03-20 14:43:45 +01:00
parent e0006f049c
commit cef7d5b5f9
2 changed files with 47 additions and 10 deletions

25
helper.c Normal file
View File

@@ -0,0 +1,25 @@
#include <stdint.h>
#include <stdio.h>
void print_uint128(unsigned __int128 n) {
if (n == 0) {
printf("0\n");
return;
}
// A 128-bit number can have up to 39 decimal digits
char buffer[40];
int i = 0;
// Extract digits from right to left
while (n > 0) {
buffer[i++] = (n % 10) + '0'; // Convert math digit to character
n /= 10;
}
// Print them in reverse order (left to right)
while (i > 0) {
putchar(buffer[--i]);
}
putchar('\n');
}