Adiciona tinyblocks-base64 e tinyblocks-curves (listas de pontos)

This commit is contained in:
mguinhos committed 2026-10-20 20:59:17 -03:00
1 parent a14c7f9937
commit b1b15a4c49
12 files changed
+815 -9

No files matched your search

@@ -0,0 +1,23 @@
/*
* TinyBlocks - tb_base64.h
* Library tinyblocks-base64: codifica/decodifica Base64 (categoria "Base64").
* Independente do editor.
*/
#ifndef TINYBLOCKS_BASE64_H
#define TINYBLOCKS_BASE64_H
#include <tinyblocks/tinyblocks.h>
TB_API const TinyBlocks_LibraryDescriptor* tb_base64_get_library(void);
/* -- API C: buffers alocados com malloc (libere com free) --- */
/* Codifica n bytes em texto Base64 terminado em '\0'. */
TB_API char* tb_base64_encode(const void* data, size_t n);
/* Decodifica texto Base64; escreve o tamanho em *out_len (se != NULL). */
TB_API unsigned char* tb_base64_decode(const char* text, size_t* out_len);
/* Atalhos para strings (o decode devolve texto terminado em '\0'). */
TB_API char* tb_base64_encode_str(const char* s);
TB_API char* tb_base64_decode_str(const char* s, size_t* out_len);
TB_API const char* tb_base64_last_error(void);
#endif /* TINYBLOCKS_BASE64_H */