summaryrefslogtreecommitdiff
path: root/sys/src/ape
AgeCommit message (Collapse)Author
2018-01-02ape/libauth: remove auth_wep.$O from mkfilecinap_lenrek
2017-12-31ape: make encXchr()/decXchr() functions availablecinap_lenrek
2017-11-20libsec: write optimized _chachablock() function for amd64 / sse2cinap_lenrek
doing 4 quarterround's in parallel using 128-bit vector registers. for second round shuffle the columns and then shuffle back. code is rather obvious. only trick here is for the first quaterround PSHUFLW/PSHUFHW is used to swap the halfwords for the <<<16 rotation.
2017-11-12libsec: AES-NI support for amd64cinap_lenrek
Add assembler versions for aes_encrypt/aes_decrypt and the key setup using AES-NI instruction set. This makes aes_encrypt and aes_decrypt into function pointers which get initialized by the first call to setupAESstate(). Note that the expanded round key words are *NOT* stored in big endian order as with the portable implementation. For that reason the AESstate.ekey and AESstate.dkey fields have been changed to void* forcing an error when someone is accessing the roundkey words. One offender was aesXCBmac, which doesnt appear to be used and the code looks horrible so it has been deleted. The AES-NI implementation is for amd64 only as it requires the kernel to save/restore the FPU state across syscalls and pagefaults.
2017-10-28libc: improve alignment of QLp structure on amd64, cosmeticscinap_lenrek
the QLp structure used to occupy 24 bytes on amd64. with some rearranging the fields we can get it to 16 bytes, saving 8K in the data section for the 1024 preallocated structs in the ql arena. the rest of the changes are of cosmetic nature: - getqlp() zeros the next pointer, so there is no need to set it when queueing the entry. - always explicitely compare pointers to nil. - delete unused code from ape's qlock.c
2017-10-17libsec: add AES CFB and AES OFB stream cipherscinap_lenrek
2017-04-23libsec: sha256 support for thumbprint files, use it in ssh as wellcinap_lenrek
initThumbprints() now takes an application tag argument so x509 and ssh can coexist. the thumbprint entries can now hold both sha1 and sha256 hashes. okThumbprint() now takes a len argument for the hash length used. the new function okCertificate() hashes the certificate with both and checks for any matches. on failure, okCertificate() returns 0 and sets error string. we also check for include loops now in thumbfiles, limiting the number of includes to 8.
2016-11-27stdio: fix sclose() buffer overrun when terminating string, realloc() error ↵cinap_lenrek
handling (thanks porlock) theres a bug is in sclose() where it doesnt check if wp is beyond the buffer. also wp was not updated after realloc(). bug was reported by porlock on 9fans: Plan 9's implementation of the standard C functions snprintf and vsnprintf have a buffer overrun bug. If the buffer length equals the output length (without the terminating null), then one too many characters is written to the buffer. For example, snprintf(buf, 4, "ABCD"); will write 5 characters to buf.
2016-10-30ape/libsec: add secp384r1 curve parameters for tlscinap_lenrek
2016-09-14ape: fix format clash, %z is for size_t (which is a long currently), not ↵cinap_lenrek
pointer sized
2016-09-11ape: bring strtod() in line with plan9's libc versioncinap_lenrek
2016-08-28ape: add d_stat struct in dirent struct allowing the avoidance of statscinap_lenrek
2016-08-04ape/libauth: add PASSWDLEN constant to compile passtokey.c from native ↵cinap_lenrek
libauthsrv (thanks lawler)
2016-07-10libsec: add scrypt password based key derivation functioncinap_lenrek
2016-05-04retire the dec alpha portcinap_lenrek
2016-05-04ape: return plan9 error strings from strerror()cinap_lenrek
when _syserrno() fails to map a plan9 error string to a unix error number, we copy the plan9 error string to the per process error buffer "plan9err" and set errno = EPLAN9. when strerror() is called with EPLAN9, it returns a pointer to the plan9err buffer.
2016-04-29ape/libsec: fix nuke target to remove /$objtype/lib/ape/libsec.a instead of ↵cinap_lenrek
/$objtype/lib/libsec.a
2016-04-27remove ape regexp library, add utility for awk native portben
2016-04-20libsec: implement elliptic curve group operations in jacobian coordinate systemcinap_lenrek
2016-04-11ape: explicitely list the ape libs to build in mkfilecinap_lenrek
2016-04-11ape: removing opensslcinap_lenrek
2016-04-11ape: add libauth, libbio, libmp and libsec as replacements for opensslcinap_lenrek
2016-04-10ape: move compatibility libc.h to lib9 directory and incooperate needed ↵cinap_lenrek
functions for ape/mp (wip)
2016-04-10ape: remove broken 9errstr.ccinap_lenrek
2016-04-10ape: add internal _NSEC() function and make gettimeofday() use itcinap_lenrek
2016-01-07ape/stdio: %z format is VLONG on amd64cinap_lenrek
2016-01-07ape/fmt: %p and %z format for amd64cinap_lenrek
2015-10-04ape: add missing _subv() function to 386/vlop.scinap_lenrek
2015-10-04ape: add machine specific code for spimcinap_lenrek
2015-10-04libc: add _uv2d()/uv2f() and _vas*d() functions to vlrt.ccinap_lenrek
on 32 bit archs, implement 64 bit vasop with floatingpoint right hand side. also added is uvlong->double conversion function.
2015-09-25ape: add badrect object into ape libdrawmischief
2015-08-08ape: fix build for objtype=spimcinap_lenrek
2015-08-04ape: implement altzone for tzset()cinap_lenrek
2015-08-04ape: fix mktime() againcinap_lenrek
2015-07-07ape: port libc smp tas() for armcinap_lenrek
2015-06-11fix strncmp/memcmp used with a wrong numberftrvxmtrx
2015-05-17libc: use Runemax instead of hardcoded 0x65536 for fmtchar check (thanks qrstuv)cinap_lenrek
2015-03-25ape: fix main9 for mipscinap_lenrek
2015-03-25ape: fix lockinit() for mipscinap_lenrek
2015-03-18ape: silence compiler "no return at end of function" for mips lock.ccinap_lenrek
2014-12-25getfcr: change getfcr/setfcr to use VFPcinap_lenrek
2014-12-22ape: add fprint %z format (thanks Ori_B)cinap_lenrek
2014-07-12expr: fix missing type declarations for match(), which broke on amd64 as ↵cinap_lenrek
pointers dont fit into a long
2014-05-29ape/stdio: set errno to EMFILE when running out of streamscinap_lenrek
2014-02-17prof: properly save and restore RARG for amd64cinap_lenrek
amd64 passes first argument in RARG (BP) register which has the be preserved duing _profin() and _profout() calls. to handle this we introduce _saveret() and _savearg(). _saveret() returns AX, _savearg() returns RARG (BP). for archs other and amd64, _saveret() and _savearg() are the same function, doing nothing. restoing works with dummy function: uintptr _restore(uintptr, uintptr ret) { return ret; } ... ret = _saveret(); arg = _savearg(); ... return _restore(arg, ret); as we pass arg as the first argument, RARG (BP) is restored.
2014-02-01libc and ape support for amd64cinap_lenrek
2014-01-20ape: remove local copy of memccpy()cinap_lenrek
2013-12-28ape: move strdup() from libbsd to libap (from sources)cinap_lenrek
including <string.h> should be enougth to make strdup() available.
2013-11-06synchronize ape's vfprintf with libstdiomischief
in ape's vfprintf we don't check if the file we're writing is actually a string buffer, resulting in a return of -1, when we should actually return the number of bytes that would be written.
2013-10-26mkfiles: do not rely on path containing the . elementcinap_lenrek
when executing generated binaries and helper scripts, always execute them as ./name instead of relying that path contsins the dot.