aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-21Merge branch 'ln/cc20rng-revamp' into ln/develLinus Nordberg
2020-01-21[cc20rng] Revamping the ChaCha20 seedingLinus Nordberg
- chacha20_prng_block() uses counter in the state struct - chacha20_setup() replaces chacha20_prng_reseed() and fills the whole state struct, fixing a bug where only half of the key was being set; as a result of 'counter' being set, a state struct filled with entropy from the TRNG makes reseeding occur after a random number of rounds instead of after a fixed 2^32-1 rounds - decrementing of the block counter is done in chacha20_prng_block() - chacha output is copied to buf _after_ the interrupt driven transmission of buf to UART has finished, to stop the race between reading and refilling of buf
2020-01-21[cc20rng] Code formatting changesLinus Nordberg
Keep indentation level 2 in main.c to minimise changes.
2020-01-21Update comments for later revisionsln/develLinus Nordberg
2020-01-21Add version and application info to ELF fileLinus Nordberg
2019-12-18Don't find | rm for target 'clean'Linus Nordberg
That's too destructive (and also it doesn't work well with .~/).
2019-12-16rev11 hardwareLinus Nordberg
2019-12-16Make local functions staticLinus Nordberg
2019-12-16Allow for overriding which application to buildLinus Nordberg
2016-11-21add RNG using ChaCha20 as CSPRNGFredrik Thulin
2015-06-28Enable dual USART output functionality.Fredrik Thulin
In other words, enable the USART connected to the serial port on the Raspberry Pi GPIO header. Sending a newline to either USART directs the generated entropy to that USART.
2015-06-28Remove trailing whitespace and DOS line endings.Fredrik Thulin
2015-01-15initFredrik Thulin
2015-01-15new repository initial commitFredrik Thulin
' href='#n172'>172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339