DocScrutinizer05 changed the topic of #qi-hardware to: Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs and http://irclog.whitequark.org/qi-hardware
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 240 seconds]
rz2k has joined #qi-hardware
viric has quit [Remote host closed the connection]
viric has joined #qi-hardware
emeb has joined #qi-hardware
emeb has left #qi-hardware [#qi-hardware]
sanderr has quit [Ping timeout: 260 seconds]
qwebirc32446 has joined #qi-hardware
qwebirc32446 is now known as rjeffries
rjeffries has quit [Client Quit]
xiangfu has quit [Remote host closed the connection]
sanderr has joined #qi-hardware
porchaso0 has joined #qi-hardware
porchao has quit [Ping timeout: 240 seconds]
xiangfu has joined #qi-hardware
kilae has joined #qi-hardware
porchao has joined #qi-hardware
porchaso0 has quit [Ping timeout: 272 seconds]
jekhor has joined #qi-hardware
jekhor has quit [Ping timeout: 256 seconds]
pcercueiS2 has joined #qi-hardware
lekernel has joined #qi-hardware
pcercuei has joined #qi-hardware
pcercueiS2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
kilae has quit [Ping timeout: 272 seconds]
kilae has joined #qi-hardware
wolfspraul has quit [Ping timeout: 272 seconds]
wolfspraul has joined #qi-hardware
rz2k has quit []
dos1 has joined #qi-hardware
porchaso0 has joined #qi-hardware
porchao has quit [Read error: Connection reset by peer]
jekhor has joined #qi-hardware
FDCX has joined #qi-hardware
porchao has joined #qi-hardware
porchaso0 has quit [Ping timeout: 248 seconds]
Coyo has joined #qi-hardware
Coyo is now known as Guest89876
wolfspraul has quit [Ping timeout: 272 seconds]
jekhor has quit [Ping timeout: 272 seconds]
kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
dos1 has quit [Quit: Kabum!]
dos1 has joined #qi-hardware
<roh>
wolfspraul has joined #qi-hardware
viric has quit [Ping timeout: 240 seconds]
viric has joined #qi-hardware
pcercuei has quit [Read error: Connection reset by peer]
pcercuei has joined #qi-hardware
lekernel has quit [Quit: Leaving]
qi-bot has quit [Ping timeout: 252 seconds]
qi-bot has joined #qi-hardware
wolfspraul has quit [Quit: leaving]
valhalla has quit [Ping timeout: 245 seconds]
valhalla has joined #qi-hardware
FDCX_ has joined #qi-hardware
FDCX has quit [Ping timeout: 272 seconds]
dandon has quit [Ping timeout: 240 seconds]
<ysionneau> wpwrak: I'm not a really big fan of storing random numbers on the sdcard and using it as the *only* source
<ysionneau> what happens if someone breaks the random number file? does the device stop working?
<ysionneau> refuses to do anything until the random number file is recovered?
<ysionneau> mixing bits from hw RNG and from sdcard could be a good idea
<ysionneau> if sdcard random file is corrupted, then use hw RNG only
<ysionneau> another 3rd source of entropy could be nice :)
<ysionneau> gn8!
<wpwrak> ysionneau: yes, in a "file only" scenario, if you lose the random number source, the device couldn't perform any operations that need random numbers. it could still access existing content, though
<wpwrak> in a mixing scenario, you may or may not care if additional sources are available. depends on how much you trust the hw rng.
<wpwrak> and yes, a 3rd source would be nice :) but they're difficult to find. e.g., my workstation produces a mere ~3 kbits per second (/dev/random), all that by "entropy harvesting"
rz2k has joined #qi-hardware
kilae has joined #qi-hardware
<wpwrak> i think there should be a ban on perverts writing data sheets ...
kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
<wpwrak> the kl25 clock generation (not speaking of clock distribution/dividers/gating yet) at reset alone involves four fields in three different registers. of course, there's nothing that simply says what result you'll get. and the default is a fairly odd value (~20.971 MHz)
<eintopf> the sd card file solution is some static entropy source
<eintopf> put some sensors on it and mix the data
<wpwrak> hmm, you're not subscribed to the qi-hw list, are you ?
<wpwrak> and yes, mixing is part of the plan :)
wej has quit [Ping timeout: 264 seconds]
<eintopf> wpwrak: okay, but I think I am not a big help with these crazy random number generators
<wpwrak> heh, they're fun ;-) something whose principal characteristic is that it has no characteristics
<eintopf> wpwrak: I take a cryptology course this semester
<eintopf> so maybe I can help you with anelok ;)
<wpwrak> it may be a good opportunity to apply the theory on a real problem
<eintopf> yea and we will talk about "good" prngs
<wpwrak> hmm .. what's good about having a lot of wind is that the temperature is fairly nice. what's not so good it that it does a bit of a poltergeist impersonation with all the papers on my desk :(
<eintopf> which temperature?
<eintopf> room temperature? :S
<wpwrak> about 25 C, still fairly cool
<eintopf> too hot
<eintopf> you need something like this
<eintopf> don't know if your mcu can handle it :)
<eintopf> writing a bignum lib ;)
<wpwrak> hot ? buenos aires gets up to about 40 C, sometimes a little more, depending on the station
dos1 has quit [Quit: Kabum!]
<wpwrak> "The algorithm in its native form is not suitable for cryptography" :)
<wpwrak> and i don't want to use a PRNG. we have a fast enough hw RNG. all it needs are 1) simple statistical tests (to make sure it works), and 2) an entropy pool to blur any bias
<eintopf> oh
<eintopf> you need "Die Hard" for 1) http://www.stat.fsu.edu/pub/diehard/
<eintopf> or
<eintopf> this test suite
<eintopf> don't know :-)
<eintopf> but for 1) you need a working 2)
<wpwrak> i think i'll try dieharder. that's even in debian. couldn't get easier :)
<eintopf> yea I saw dieharder, too
<wpwrak> no, the RNG itself should pass statistical tests. the pool is just make sure nothing happens the tests didn't catch.
<eintopf> you mean only the hw rng?
<eintopf> but the hw rng is maybe hacked from nsa
<wpwrak> also, there are two types of tests: 1) lab tests (dieharder and such). they're extensive and resource-hungry. their purpose is to make sure the RNG design is correct. 2) run-time tests. their purpose is to make sure the RNG works right now. they can't find any of the subtle flaws the lab tests should reveal. but they can stop the device from using a RNG that is suffering a dramatic hardware flaw.
<wpwrak> the lab tests are there to try to find any NSA "contributions"
<wpwrak> the entropy pool messes things up a little more, to make it hard to exploit anything the lab tests didn't find
<eintopf> and 1) is for low battery tests?
<wpwrak> and if we have an "entropy assist" (the external file, which is basically an OTP), that can obscure things further
<wpwrak> 1) is just the RNG. might try with different voltages, though that shouldn't matter much since the RF chips works at 1.8 V anyway, which is even below the minimum voltage the rest of the circuit is designed for (2.0 V)
<eintopf> ah
<eintopf> ok
<eintopf> rf chips, then you can use the rssi for entropy ;)
<wpwrak> well, i think it does something like this
<eintopf> ah
<wpwrak> i.e., you have to turn on the receiver for the RNG to work
<eintopf> the mcu with hw rng has the rf chip?
<wpwrak> no, the RF chip (with RNG) is a separate item
<eintopf> ah ok
<wpwrak> it's an Atmel AT86RF232
<eintopf> cool
<eintopf> oh i know the at86rf230 :P
<wpwrak> unfortunately, the MCU doesn't have an RNG. it's love to have one there, too.
<wpwrak> actually, you know the 231 ;-)
<eintopf> :o
<eintopf> but the 231 has no rng?
<wpwrak> 231/2/3 are very similar
<wpwrak> the 231 has one too
<eintopf> oh cool, didn't notice this
<wpwrak> the 232 is cheaper than the 231, that's why i'm using it here. it lacks a few features we don't need anyway, e.g., some non-standard speeds and some RF front-end options
<eintopf> so I can turn the atusb stick to an cryptostick
<wpwrak> yeah, you could. i may actually use atusb as rf dongle for anelok
<eintopf> s/to/into/
<qi-bot> eintopf meant: "so I can turn the atusb stick into an crypintostick"
<eintopf> qi-bot: thanks
<wpwrak> heh ;-)
<eintopf> you have an usb host on anelok?
<eintopf> so you use 2.0 V
<wpwrak> kinda. yes. it'll need an external (passive) adapter
<eintopf> so I would say no :)
<eintopf> oh
<wpwrak> anelok has USB OTG but doesn't provide USB power. that would be a bit too hard on the poor little coin cell
<eintopf> yea
<eintopf> but maybe you can charge the anelok over usb
<eintopf> that would be nice
<eintopf> there exists some rechargeable little coin cells?
<eintopf> oh yes :)
<wpwrak> the fun part is around 0:30. that was about 13 hours ago, a few blocks from where i live.
<eintopf> I remember my old grandpa which have some injections with many of little coin cells
<eintopf> don't know what he doing with the coin cells there
<wpwrak> (charge) naw, no rechargeable battery. they're just a mess and don't make sense for such a device.
<wpwrak> coin cell injections ? is your grandfather an android ? :)
<eintopf> no
<eintopf> he put coin cells in a injection
<eintopf> and put some wire on it
<eintopf> :D
<wpwrak> hm, sounds weird :)
<eintopf> wpwrak: the train didn't stop :/
<wpwrak> well, eventually it did ... only some 80 wounded, no dead
<wpwrak> less than two years, a similar accident at exactly the same place cost more than 50 lives
<eintopf> :(
<wpwrak> s/years/years ago/
<qi-bot> wpwrak meant: "less than two years ago, a similar accident at exactly the same place cost more than 50 lives"
<eintopf> you should not drive with the train
<eintopf> but back to anelok, so the anelok has the at86rf232 so it could run 6lowpan on it ;)
<wpwrak> back then, the buffers (prellbock) didn't move at all (because of catastrophically incorrect maintenance), so the train basically smashed into an unmovable obstacle
<eintopf> ah, I know what you mean
<wpwrak> this time, the buffers visibly did yield. alas. they didn't quite stop the train either. maybe they'll get it right the third time ...
<wpwrak> and no, i don't take trains around here :)
<eintopf> maybe they have a poor real time os
<eintopf> :/
<wpwrak> well, one thing they don't have are any safety mechanisms. those trains can ignore stop signals all day long and nothing happens.
<wpwrak> they also derail on at least a weekly basis
<eintopf> :o
<eintopf> ok, when you take a train... you need to seat in the middle
<wpwrak> oh course, they go only very very slowly (i think never more than 60 km/h), so most derailments are harmless. except for the service interruption, of course.
<wpwrak> naw, if i ever take such a train, i need a shrink. urgently ;-)
<eintopf> wpwrak: so I can download your cad files for anelok, look for your hardware components and I can try to build a own?
<wpwrak> sure. it's all there
<wpwrak> and the pcb is actually DIY-friendly :)
<eintopf> what's a pcb? :(
<eintopf> printed circuit board
<eintopf> ah
<eintopf> your wires are too small
<eintopf> you weld lines which a wide of my hair
<wpwrak> hmm, if you have very thick hair, you're close. traces are about 0.2 mm / 8 mil.
<wpwrak> but the soldering isn't excessively difficult
<eintopf> yea you gave me your led toy document