Re: Hardware accelerated hashing and decryption

"ahz (as ahz at snafu dot de)" <[email protected]> Fri, 10 Apr 2026 23:36:19 +0200
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
Am 10.04.2026 um 22:11 schrieb Eben Bruyns (as eben at sdk dot co dot nz):
> Hi,
>
> I know I can link to external C/C++ libraries for this, but this 
> creates a deployment nightmare on Linux for me. I know this is crazy 
> talk but is there a way to gain access to the assembler for Lispworks 
> or even inject machine code straight into a lisp function? I 
> understand that there's a lot of issues around this with memory safety 
> and management (and a LOT more). This has been a real problem for me 
> throughout the project I'm working on, I've resorted to shelling to 
> for some stuff but I'm running up against limits with this around some 
> algorithms. So naturally my instincts are to add hardware acceleration 
> to Lispworks generated code for this.
>
> I'm well aware of the dangers of implementing crypto from the ground 
> up but this is mostly for file integrity checks and just decryption 
> data not security. The algorithms are dictated by 3rd parties so I 
> have no control over it.
>
> Regards,
>
> Eben Bruyns
Hi,

I'm not aware of a way to include asm directly. But there exists 
(process-foreign-code) to include a C-fct to your compiled lisp pragram.
And in a C-Program you might use anything like __asm__() to add pure asm 
code.

Maybe this helps.

Regards
Andreas