r/cryptography • • 14d ago

algorithm replicating

if i have secure implementation of algorithm in 1 language and i wana port it to other language and they dont have compiler is there secure way to do it?

0 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Natanael_L 13d ago

What kind of syscalls? You'd have to model what the calls do and figure out if they're necessary and if they can be replicated.

For cryptographic algorithms, the only common syscalls are memory access and RNG calls. If you don't have an RNG available you've got problems, unless the algorithm is deterministic.

1

u/rvg0291 13d ago

thats hard to replace syscalls i know that they dont need syscalls but some librarys still have them including console syscalls to make cli,lib loading syscalls,rng syscalls and its hard top replicate them also i need final algorithm to have finite memory and time wich starting algorithms dont cus they have unbounded/conditonal while loops