Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/check/bind.hexa
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ fn _bind_builtin_names() -> [string] {
// Step 4 .c-none to_int: float→int truncate bridge + real str-parse C fn
// (rt_to_int escape — self/runtime_core.c).
"__raw_d2i", "hexa_str_parse_int",
"abs", "aes256_ctr_xor", "append", "args", "argv", "bcrypt_pbkdf", "bits_to_float", "byte_len", "bytes_to_f32_le",
"abs", "aes256_ctr_xor", "append", "args", "argv", "bits_to_float", "byte_len", "bytes_to_f32_le",
"bytes", "bytes_to_f64_le", "ceil", "chacha20_poly1305_decrypt", "chacha20_poly1305_encrypt", "chacha20_xor", "chars", "clock_ms", "copy_file",
"cos", "crc32", "dict_keys", "ed25519_keypair", "ed25519_sign", "ed25519_verify", "env", "eprint",
"eprintln", "exec_pipe_open", "exec_stream_kill", "exec_with_status", "exec", "exit", "exp", "f32_to_bytes_le",
Expand Down
5 changes: 0 additions & 5 deletions self/codegen.hexa
Original file line number Diff line number Diff line change
Expand Up @@ -6967,10 +6967,6 @@ fn gen2_expr(node) {
if name == "chacha20_poly1305_encrypt" {
return "hexa_chacha20_poly1305_encrypt(" + arg_strs[0] + ", " + arg_strs[1] + ", " + arg_strs[2] + ", " + arg_strs[3] + ")"
}
// stdlib/crypto — bcrypt_pbkdf KDF (RFC ssh-keyfile-encrypted)
if name == "bcrypt_pbkdf" {
return "hexa_bcrypt_pbkdf(" + arg_strs[0] + ", " + arg_strs[1] + ", " + arg_strs[2] + ", " + arg_strs[3] + ")"
}
if name == "chacha20_poly1305_decrypt" {
return "hexa_chacha20_poly1305_decrypt(" + arg_strs[0] + ", " + arg_strs[1] + ", " + arg_strs[2] + ", " + arg_strs[3] + ")"
}
Expand Down Expand Up @@ -10177,7 +10173,6 @@ fn _is_builtin_name(name) {
if name == "x25519_scalarmult" { return true }
if name == "chacha20_xor" { return true }
if name == "aes256_ctr_xor" { return true }
if name == "bcrypt_pbkdf" { return true }
if name == "poly1305_onetimeauth" { return true }
if name == "chacha20_poly1305_encrypt" { return true }
if name == "chacha20_poly1305_decrypt" { return true }
Expand Down
523 changes: 0 additions & 523 deletions self/native/crypto_blowfish.c

This file was deleted.

2,256 changes: 1,132 additions & 1,124 deletions self/native/hexa_cc.c

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion self/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -12425,7 +12425,6 @@ static void _hexa_init_fn_shims(void) {
* RFC: incoming/patches/stdlib-ssh-client.md (crypto suite prereq)
* ═══════════════════════════════════════════════════════════════════ */
#include "native/crypto_sodium.c"
#include "native/crypto_blowfish.c"
#include "native/crypto_openssl.c"
#include "native/exec_pipe.c"
#include "native/proc_fork.c"
Expand Down
1 change: 0 additions & 1 deletion self/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ HexaVal hexa_ed25519_sign(HexaVal priv, HexaVal msg); /* native/c
HexaVal hexa_x25519_keypair(void); /* native/crypto_sodium.c:181 */
HexaVal hexa_x25519_scalarmult(HexaVal scalar, HexaVal point); /* native/crypto_sodium.c:198 */
HexaVal hexa_aes256_ctr_xor(HexaVal key, HexaVal iv, HexaVal data); /* native/crypto_openssl.c:20 (HEXA_HAS_OPENSSL) */
HexaVal hexa_bcrypt_pbkdf(HexaVal pass, HexaVal salt, HexaVal rounds, HexaVal keylen); /* native/crypto_blowfish.c:457 */

/* exec stream (long-running child process IO) */
HexaVal hexa_exec_stream_open(HexaVal cmd); /* runtime.c:11961 */
Expand Down
1 change: 1 addition & 0 deletions self/stdlib/ssh/keyfile.hexa
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
// ssh_keyfile_load_ed25519(path) -> { pk:[32], sk:[64] } | { error }

use "self/stdlib/ssh/wire" // ssh_get_u32 / ssh_get_string
use "stdlib/crypto/blowfish" // bcrypt_pbkdf — hexa-native KDF (was runtime builtin)

let _SSH_OPENSSH_MAGIC = "openssh-key-v1"

Expand Down
Loading