Path: csiph.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Keith Thompson Newsgroups: comp.compilers Subject: Re: Crypto friendly optimization? Date: Sat, 24 Aug 2024 20:55:19 -0700 Organization: Compilers Central Sender: johnl%iecc.com Approved: comp.compilers@iecc.com Message-ID: <24-08-006@comp.compilers> References: <24-08-003@comp.compilers> <24-08-004@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="21281"; mail-complaints-to="abuse@iecc.com" Keywords: optimize Posted-Date: 25 Aug 2024 13:25:22 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:3587 Keith Thompson writes: [...] > C23 will add the memset_explicit() function : [snip] > > [C11 has memset_s() which seems more or less the same thing. > ... > -John] memset_s() is part of ISO C Annex K, which is optional. glibc, for example, doesn't currently provide either, though it does provide explicit_bzero(). TLDR: There are currently several different C solutions with varying levels of support. Until then, a creepy maze of #ifdefs is probably the best we can do. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */