D Finnigan
2024-07-23 14:46:14 UTC
As a part of Stephen Heumann's SMB filesystem translator for GS/OS, he also
developed 65816 Cryptographic & Hash Libraries which are on GitHub here:
https://github.com/sheumann/65816-crypto
The project Read Me says:
This package contains libraries implementing cryptographic algorithms for
the 65816, suitable for use on the Apple IIgs and potentially also other
65816-based systems. Currently, it includes implementations of AES and RC4
encryption and decryption (in lib65816crypto), and of the MD4, MD5, SHA-1,
and SHA-256 hash functions (in lib65816hash). The core algorithms for each
of these are written in carefully optimized assembly code, and they can
generally process at least several thousand bytes per second on a 2.8 MHz
Apple IIgs.
Using the Libraries
These libraries can easily be used from ORCA/C, or from ORCA/M or other
assemblers that permit linking to OMF libraries. (With appropriate glue
code, they could also be used from other languages.) Refer to the included
header files for documentation on how to call them. Note that each algorithm
uses a 'context' structure which must be in bank 0. This can be allocated on
the stack (e.g. by using a local variable in C), although maximum
performance will be obtained if it is page-aligned.
============
Availability of these hashes and ciphers brings us one step closer to a TLS
library for the Apple IIgs.
developed 65816 Cryptographic & Hash Libraries which are on GitHub here:
https://github.com/sheumann/65816-crypto
The project Read Me says:
This package contains libraries implementing cryptographic algorithms for
the 65816, suitable for use on the Apple IIgs and potentially also other
65816-based systems. Currently, it includes implementations of AES and RC4
encryption and decryption (in lib65816crypto), and of the MD4, MD5, SHA-1,
and SHA-256 hash functions (in lib65816hash). The core algorithms for each
of these are written in carefully optimized assembly code, and they can
generally process at least several thousand bytes per second on a 2.8 MHz
Apple IIgs.
Using the Libraries
These libraries can easily be used from ORCA/C, or from ORCA/M or other
assemblers that permit linking to OMF libraries. (With appropriate glue
code, they could also be used from other languages.) Refer to the included
header files for documentation on how to call them. Note that each algorithm
uses a 'context' structure which must be in bank 0. This can be allocated on
the stack (e.g. by using a local variable in C), although maximum
performance will be obtained if it is page-aligned.
============
Availability of these hashes and ciphers brings us one step closer to a TLS
library for the Apple IIgs.
--
]DF$
The New Apple II User's Guide:
https://macgui.com/newa2guide/
]DF$
The New Apple II User's Guide:
https://macgui.com/newa2guide/