2013-10-19 01:06 pcercuei has joined #qi-hardware 2013-10-19 01:19 pcercuei has quit [Ping timeout: 240 seconds] 2013-10-19 01:31 rz2k has joined #qi-hardware 2013-10-19 01:38 viric has quit [Remote host closed the connection] 2013-10-19 01:46 viric has joined #qi-hardware 2013-10-19 01:47 emeb has joined #qi-hardware 2013-10-19 01:47 emeb has left #qi-hardware [#qi-hardware] 2013-10-19 02:06 sanderr has quit [Ping timeout: 260 seconds] 2013-10-19 04:39 qwebirc32446 has joined #qi-hardware 2013-10-19 04:40 qwebirc32446 is now known as rjeffries 2013-10-19 04:44 rjeffries has quit [Client Quit] 2013-10-19 05:39 xiangfu has quit [Remote host closed the connection] 2013-10-19 06:23 sanderr has joined #qi-hardware 2013-10-19 07:23 porchaso0 has joined #qi-hardware 2013-10-19 07:25 porchao has quit [Ping timeout: 240 seconds] 2013-10-19 08:07 xiangfu has joined #qi-hardware 2013-10-19 08:09 kilae has joined #qi-hardware 2013-10-19 08:48 porchao has joined #qi-hardware 2013-10-19 08:50 porchaso0 has quit [Ping timeout: 272 seconds] 2013-10-19 08:59 jekhor has joined #qi-hardware 2013-10-19 09:11 jekhor has quit [Ping timeout: 256 seconds] 2013-10-19 09:20 pcercueiS2 has joined #qi-hardware 2013-10-19 09:44 lekernel has joined #qi-hardware 2013-10-19 09:47 pcercuei has joined #qi-hardware 2013-10-19 09:50 pcercueiS2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org] 2013-10-19 10:14 kilae has quit [Ping timeout: 272 seconds] 2013-10-19 11:29 kilae has joined #qi-hardware 2013-10-19 11:31 wolfspraul has quit [Ping timeout: 272 seconds] 2013-10-19 11:32 wolfspraul has joined #qi-hardware 2013-10-19 11:50 rz2k has quit [] 2013-10-19 11:54 dos1 has joined #qi-hardware 2013-10-19 11:54 porchaso0 has joined #qi-hardware 2013-10-19 11:57 porchao has quit [Read error: Connection reset by peer] 2013-10-19 12:03 jekhor has joined #qi-hardware 2013-10-19 13:06 FDCX has joined #qi-hardware 2013-10-19 13:43 porchao has joined #qi-hardware 2013-10-19 13:45 porchaso0 has quit [Ping timeout: 248 seconds] 2013-10-19 14:23 Coyo has joined #qi-hardware 2013-10-19 14:24 Coyo is now known as Guest89876 2013-10-19 14:26 wolfspraul has quit [Ping timeout: 272 seconds] 2013-10-19 14:35 jekhor has quit [Ping timeout: 272 seconds] 2013-10-19 15:04 kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]] 2013-10-19 15:21 dos1 has quit [Quit: Kabum!] 2013-10-19 15:31 dos1 has joined #qi-hardware 2013-10-19 15:58 2013-10-19 17:46 wolfspraul has joined #qi-hardware 2013-10-19 18:31 viric has quit [Ping timeout: 240 seconds] 2013-10-19 18:31 viric has joined #qi-hardware 2013-10-19 19:50 pcercuei has quit [Read error: Connection reset by peer] 2013-10-19 19:51 pcercuei has joined #qi-hardware 2013-10-19 20:13 lekernel has quit [Quit: Leaving] 2013-10-19 20:38 qi-bot has quit [Ping timeout: 252 seconds] 2013-10-19 20:39 qi-bot has joined #qi-hardware 2013-10-19 20:48 wolfspraul has quit [Quit: leaving] 2013-10-19 20:56 valhalla has quit [Ping timeout: 245 seconds] 2013-10-19 20:58 valhalla has joined #qi-hardware 2013-10-19 21:03 FDCX_ has joined #qi-hardware 2013-10-19 21:05 FDCX has quit [Ping timeout: 272 seconds] 2013-10-19 21:13 dandon has quit [Ping timeout: 240 seconds] 2013-10-19 21:29 wpwrak: I'm not a really big fan of storing random numbers on the sdcard and using it as the *only* source 2013-10-19 21:30 what happens if someone breaks the random number file? does the device stop working? 2013-10-19 21:30 refuses to do anything until the random number file is recovered? 2013-10-19 21:31 mixing bits from hw RNG and from sdcard could be a good idea 2013-10-19 21:31 if sdcard random file is corrupted, then use hw RNG only 2013-10-19 21:31 another 3rd source of entropy could be nice :) 2013-10-19 21:33 gn8! 2013-10-19 21:37 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 2013-10-19 21:38 in a mixing scenario, you may or may not care if additional sources are available. depends on how much you trust the hw rng. 2013-10-19 21:40 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" 2013-10-19 22:20 rz2k has joined #qi-hardware 2013-10-19 22:22 kilae has joined #qi-hardware 2013-10-19 22:29 i think there should be a ban on perverts writing data sheets ... 2013-10-19 22:36 kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]] 2013-10-19 22:49 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) 2013-10-19 22:51 the sd card file solution is some static entropy source 2013-10-19 22:51 put some sensors on it and mix the data 2013-10-19 22:52 hmm, you're not subscribed to the qi-hw list, are you ? 2013-10-19 22:52 there's quite a bit of context: http://lists.en.qi-hardware.com/pipermail/discussion/2013-October/010335.html 2013-10-19 22:53 and yes, mixing is part of the plan :) 2013-10-19 22:53 wej has quit [Ping timeout: 264 seconds] 2013-10-19 22:58 wpwrak: okay, but I think I am not a big help with these crazy random number generators 2013-10-19 23:00 heh, they're fun ;-) something whose principal characteristic is that it has no characteristics 2013-10-19 23:03 wpwrak: I take a cryptology course this semester 2013-10-19 23:03 so maybe I can help you with anelok ;) 2013-10-19 23:04 it may be a good opportunity to apply the theory on a real problem 2013-10-19 23:05 yea and we will talk about "good" prngs 2013-10-19 23:05 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 :( 2013-10-19 23:08 which temperature? 2013-10-19 23:08 room temperature? :S 2013-10-19 23:08 about 25 C, still fairly cool 2013-10-19 23:11 too hot 2013-10-19 23:13 http://en.wikipedia.org/wiki/Mersenne_twister 2013-10-19 23:13 you need something like this 2013-10-19 23:13 don't know if your mcu can handle it :) 2013-10-19 23:14 writing a bignum lib ;) 2013-10-19 23:15 hot ? buenos aires gets up to about 40 C, sometimes a little more, depending on the station 2013-10-19 23:15 dos1 has quit [Quit: Kabum!] 2013-10-19 23:16 "The algorithm in its native form is not suitable for cryptography" :) 2013-10-19 23:18 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 2013-10-19 23:19 oh 2013-10-19 23:21 you need "Die Hard" for 1) http://www.stat.fsu.edu/pub/diehard/ 2013-10-19 23:21 or 2013-10-19 23:23 http://csrc.nist.gov/groups/ST/toolkit/rng/documentation_software.html 2013-10-19 23:23 this test suite 2013-10-19 23:23 don't know :-) 2013-10-19 23:23 but for 1) you need a working 2) 2013-10-19 23:24 i think i'll try dieharder. that's even in debian. couldn't get easier :) 2013-10-19 23:24 yea I saw dieharder, too 2013-10-19 23:24 no, the RNG itself should pass statistical tests. the pool is just make sure nothing happens the tests didn't catch. 2013-10-19 23:25 you mean only the hw rng? 2013-10-19 23:25 but the hw rng is maybe hacked from nsa 2013-10-19 23:27 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. 2013-10-19 23:27 the lab tests are there to try to find any NSA "contributions" 2013-10-19 23:28 the entropy pool messes things up a little more, to make it hard to exploit anything the lab tests didn't find 2013-10-19 23:28 and 1) is for low battery tests? 2013-10-19 23:28 and if we have an "entropy assist" (the external file, which is basically an OTP), that can obscure things further 2013-10-19 23:29 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) 2013-10-19 23:30 ah 2013-10-19 23:30 ok 2013-10-19 23:30 rf chips, then you can use the rssi for entropy ;) 2013-10-19 23:30 well, i think it does something like this 2013-10-19 23:31 ah 2013-10-19 23:31 i.e., you have to turn on the receiver for the RNG to work 2013-10-19 23:31 the mcu with hw rng has the rf chip? 2013-10-19 23:31 no, the RF chip (with RNG) is a separate item 2013-10-19 23:31 ah ok 2013-10-19 23:31 it's an Atmel AT86RF232 2013-10-19 23:31 cool 2013-10-19 23:32 oh i know the at86rf230 :P 2013-10-19 23:32 unfortunately, the MCU doesn't have an RNG. it's love to have one there, too. 2013-10-19 23:32 actually, you know the 231 ;-) 2013-10-19 23:32 :o 2013-10-19 23:32 but the 231 has no rng? 2013-10-19 23:32 231/2/3 are very similar 2013-10-19 23:32 the 231 has one too 2013-10-19 23:33 oh cool, didn't notice this 2013-10-19 23:33 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 2013-10-19 23:33 so I can turn the atusb stick to an cryptostick 2013-10-19 23:34 yeah, you could. i may actually use atusb as rf dongle for anelok 2013-10-19 23:34 s/to/into/ 2013-10-19 23:34 eintopf meant: "so I can turn the atusb stick into an crypintostick" 2013-10-19 23:34 qi-bot: thanks 2013-10-19 23:34 heh ;-) 2013-10-19 23:34 you have an usb host on anelok? 2013-10-19 23:35 so you use 2.0 V 2013-10-19 23:35 kinda. yes. it'll need an external (passive) adapter 2013-10-19 23:35 so I would say no :) 2013-10-19 23:35 oh 2013-10-19 23:36 anelok has USB OTG but doesn't provide USB power. that would be a bit too hard on the poor little coin cell 2013-10-19 23:36 yea 2013-10-19 23:36 but maybe you can charge the anelok over usb 2013-10-19 23:36 that would be nice 2013-10-19 23:37 there exists some rechargeable little coin cells? 2013-10-19 23:38 oh yes :) 2013-10-19 23:39 train arriving in buenos aires: http://www.infobae.com/2013/10/19/1517401-exclusivo-asi-fue-el-choque-once 2013-10-19 23:39 the fun part is around 0:30. that was about 13 hours ago, a few blocks from where i live. 2013-10-19 23:39 I remember my old grandpa which have some injections with many of little coin cells 2013-10-19 23:40 don't know what he doing with the coin cells there 2013-10-19 23:40 (charge) naw, no rechargeable battery. they're just a mess and don't make sense for such a device. 2013-10-19 23:40 coin cell injections ? is your grandfather an android ? :) 2013-10-19 23:40 no 2013-10-19 23:40 he put coin cells in a injection 2013-10-19 23:41 and put some wire on it 2013-10-19 23:41 :D 2013-10-19 23:42 hm, sounds weird :) 2013-10-19 23:42 wpwrak: the train didn't stop :/ 2013-10-19 23:44 well, eventually it did ... only some 80 wounded, no dead 2013-10-19 23:44 less than two years, a similar accident at exactly the same place cost more than 50 lives 2013-10-19 23:44 :( 2013-10-19 23:44 s/years/years ago/ 2013-10-19 23:44 wpwrak meant: "less than two years ago, a similar accident at exactly the same place cost more than 50 lives" 2013-10-19 23:44 you should not drive with the train 2013-10-19 23:45 but back to anelok, so the anelok has the at86rf232 so it could run 6lowpan on it ;) 2013-10-19 23:46 back then, the buffers (prellbock) didn't move at all (because of catastrophically incorrect maintenance), so the train basically smashed into an unmovable obstacle 2013-10-19 23:46 ah, I know what you mean 2013-10-19 23:46 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 ... 2013-10-19 23:46 and no, i don't take trains around here :) 2013-10-19 23:47 maybe they have a poor real time os 2013-10-19 23:48 :/ 2013-10-19 23:48 well, one thing they don't have are any safety mechanisms. those trains can ignore stop signals all day long and nothing happens. 2013-10-19 23:49 they also derail on at least a weekly basis 2013-10-19 23:49 :o 2013-10-19 23:50 ok, when you take a train... you need to seat in the middle 2013-10-19 23:50 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. 2013-10-19 23:51 naw, if i ever take such a train, i need a shrink. urgently ;-) 2013-10-19 23:52 wpwrak: so I can download your cad files for anelok, look for your hardware components and I can try to build a own? 2013-10-19 23:53 sure. it's all there 2013-10-19 23:53 and the pcb is actually DIY-friendly :) 2013-10-19 23:53 what's a pcb? :( 2013-10-19 23:54 printed circuit board 2013-10-19 23:54 ah 2013-10-19 23:54 your wires are too small 2013-10-19 23:55 you weld lines which a wide of my hair 2013-10-19 23:58 hmm, if you have very thick hair, you're close. traces are about 0.2 mm / 8 mil. 2013-10-19 23:59 but the soldering isn't excessively difficult 2013-10-19 23:59 yea you gave me your led toy document