ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
<JamesMunns[m]> Hardware crypto primitives on MCUs are often not as fast as software impls, and implementing a fully misuse resistant Algo like aes-gcm-siv both requires additional software support, and I would bet is still slower than something like chacha20-poly1305 (also used today for desktop devices).
<JamesMunns[m]> tho hardware primitives may have different power and side-channel properties! Just noting that it isn't as simple as "hardware crypto is always better", even on MCUs.
johnmcnuggets has joined #rust-embedded
johnmcnuggets has quit [Read error: Connection reset by peer]
johnmcnuggets has joined #rust-embedded
rolodondo34[m] has joined #rust-embedded
<rolodondo34[m]> Has Redox OS ever been used as a switch, router, or firewall operating system?
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
tangotaylor[m] has quit [Quit: Idle timeout reached: 172800s]
johnmcnuggets has quit [Ping timeout: 246 seconds]
Guest7282 has left #rust-embedded [Disconnected: Replaced by new connection]
M9names[m] has joined #rust-embedded
<M9names[m]> Redox has it's own matrix rooms, maybe try asking there?
<M9names[m]> https://matrix.to/#/#redox-join:matrix.org
<korken89[m]> <korken89[m]> "All my fellow cryptography..." <- > <@korken89:matrix.org> All my fellow cryptography hobbyists, what's your view on the newly standardized Ascon?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/hhFxpvRejCzSEZciDjPZZHGe>)
<korken89[m]> * On this, for those interested why Ascon is slower when papers say it should be faster:... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/tnTMaXdiaVpcYNyArxVEGkNZ>)
<korken89[m]> * On this, for those interested why Ascon is slower when papers say it should be faster:... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/FdxLEmhowVNUQkqKZciyQIVw>)
Kaspar[m] has quit [Quit: Idle timeout reached: 172800s]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
tafa has quit [Quit: ZNC - https://znc.in]
IlPalazzo-ojiisa has joined #rust-embedded
johnmcnuggets has joined #rust-embedded
andres[m] has quit [Quit: Idle timeout reached: 172800s]
mameluc[m] has quit [Quit: Idle timeout reached: 172800s]
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
johnmcnuggets has quit [Quit: Leaving]
dirbaio[m] has joined #rust-embedded
<dirbaio[m]> <korken89[m]> "I put all the testing here if..." <- do results change if you enable flash cache?
<dirbaio[m]> nvmc.icachecnf.write(|w| w.cacheen().enabled());
johnmcnuggets has joined #rust-embedded
<korken89[m]> <dirbaio[m]> "do results change if you..." <- ```... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/ftonRrfLOgruVibzkctzmWgK>)
<korken89[m]> Alittle bit improproved, mostly Chacha got faster
<korken89[m]> * A little bit improved, mostly Chacha got faster
<dirbaio[m]> Β it *widens* the difference , wow
<korken89[m]> Yeah
<korken89[m]> Chacha stomps ahead
<dirbaio[m]> Why did they use 64bit math in a cipher for embedded systems?Β πŸ˜‚πŸ€·
<korken89[m]> But makes sense, Chacha's round is really small in number of instructions while Ascon's sponge is the Constant, Sbox and diffusion stages
<korken89[m]> dirbaio[m]: This is πŸͺ¦
<dirbaio[m]> πŸ’€!Β 
<korken89[m]> I was very excited before measuring, but measurements don't lie πŸ˜…
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
rault[m] has quit [Quit: Idle timeout reached: 172800s]
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded
firefrommoonligh has joined #rust-embedded
<firefrommoonligh> Interesting; I've been using chacha for encrypted LoRa comms
<firefrommoonligh> * LoRa comms (Cortex-M)
djdisodo[m] has joined #rust-embedded
<djdisodo[m]> i want to buy sdcard module with pins searching aliexpress
<djdisodo[m]> where can i find one that has all pins connected
<djdisodo[m]> i want to avoid using spi since it didn't turn out to be fast
<mabez[m]> djdisodo[m]: Yeah SPI is super slow, the search term you'll want to use is SDIO
<mabez[m]> I see a bunch of adapters with all the pins exposed with SDIO tacked on to the end :)
<djdisodo[m]> thanks!
<djdisodo[m]> <mabez[m]> "I see a bunch of adapters with..." <- i need a full size but couldn't find one
marmrt[m] has joined #rust-embedded
<marmrt[m]> My understanding is that SDIO is not usable without paying for IP, and that SPI is basically fast enough, unless you're trying to stream video or something. (This understanding is based on a conversation at a xmas party, not actual experience)
johnmcnuggets has quit [Remote host closed the connection]
johnmcnuggets has joined #rust-embedded
sourcebox[m] has joined #rust-embedded
<sourcebox[m]> <djdisodo[m]> "i want to avoid using spi..." <- There's one from Sparkfun: https://www.sparkfun.com/products/12941
Ralph[m]1 has quit [Quit: Idle timeout reached: 172800s]
thejpster[m] has joined #rust-embedded
<thejpster[m]> <marmrt[m]> "My understanding is that SDIO is..." <- this is also my understanding. And it's really 4 bit SD Bus mode vs 1 bit SD Bus mode vs 1 bit SPI mode, as while SDIO happens to use SD Bus Mode SD Cards can also use SD Bus Mode but are not SDIO devices.
johnmcnuggets has quit [Remote host closed the connection]
johnmcnuggets has joined #rust-embedded
johnmcnuggets has quit [Remote host closed the connection]
johnmcnuggets has joined #rust-embedded
IlPalazzo-ojiis1 has joined #rust-embedded
IlPalazzo-ojiisa has quit [Read error: Connection reset by peer]
IlPalazzo-ojiis1 has quit [Remote host closed the connection]
eldruin[m] has quit [Quit: Idle timeout reached: 172800s]
<whitequark[cis]> I think I had an SDIO spec somewhere?
<whitequark[cis]> I'm not totally sure though
<whitequark[cis]> ok it's just the simplified one
<whitequark[cis]> I think you could probably make a bad SDIO host using that, but it's hard to be sure without actually doing it
<whitequark[cis]> it's missing any timings and anything except for the happy path with polling only
<whitequark[cis]> whether that's "usable" depends on your application. if you're making a personal toy that needs SDIO WiFi you can probably use that, with unreasonable amounts of effort debugging it
<whitequark[cis]> if you're making anything low-power or high-performance it's definitely not gonna work
d3zd3z[m] has joined #rust-embedded
<d3zd3z[m]> The critical_section crate provides a Mutex which can protect data using critical sections. However, as there is no Arc in no_std code, how is it intended to share this Mutex between threads?
<d3zd3z[m]> Is it typically just made a global static, and used that way?
<d3zd3z[m]> e.g. `pub static EVENT_QUEUE: Mutex<RefCell<ArrayDeque<...>>>;`?
adamgreig[m] has joined #rust-embedded
<adamgreig[m]> yea, that's typical
GrantM11235[m] has quit [Quit: Idle timeout reached: 172800s]
corecode[m] has quit [Quit: Idle timeout reached: 172800s]