<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?
<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]
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]