fortuna.c (11d38a5764295585a2472d5e861fa8abe1a11eb2) | fortuna.c (7a3f5d11fb3873674a1f7e27bcc9a5f7ce279390) |
---|---|
1/*- 2 * Copyright (c) 2013-2015 Mark R V Murray 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 36 unchanged lines hidden (view full) --- 45#include <sys/random.h> 46#include <sys/sdt.h> 47#include <sys/sysctl.h> 48#include <sys/systm.h> 49 50#include <machine/cpu.h> 51 52#include <crypto/rijndael/rijndael-api-fst.h> | 1/*- 2 * Copyright (c) 2013-2015 Mark R V Murray 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 36 unchanged lines hidden (view full) --- 45#include <sys/random.h> 46#include <sys/sdt.h> 47#include <sys/sysctl.h> 48#include <sys/systm.h> 49 50#include <machine/cpu.h> 51 52#include <crypto/rijndael/rijndael-api-fst.h> |
53#include <crypto/sha2/sha2.h> | 53#include <crypto/sha2/sha256.h> |
54 55#include <dev/random/hash.h> 56#include <dev/random/randomdev.h> 57#include <dev/random/random_harvestq.h> 58#include <dev/random/uint128.h> 59#include <dev/random/fortuna.h> 60#else /* !_KERNEL */ 61#include <inttypes.h> 62#include <stdbool.h> 63#include <stdio.h> 64#include <stdlib.h> 65#include <string.h> 66#include <threads.h> 67 68#include "unit_test.h" 69 70#include <crypto/rijndael/rijndael-api-fst.h> | 54 55#include <dev/random/hash.h> 56#include <dev/random/randomdev.h> 57#include <dev/random/random_harvestq.h> 58#include <dev/random/uint128.h> 59#include <dev/random/fortuna.h> 60#else /* !_KERNEL */ 61#include <inttypes.h> 62#include <stdbool.h> 63#include <stdio.h> 64#include <stdlib.h> 65#include <string.h> 66#include <threads.h> 67 68#include "unit_test.h" 69 70#include <crypto/rijndael/rijndael-api-fst.h> |
71#include <crypto/sha2/sha2.h> | 71#include <crypto/sha2/sha256.h> |
72 73#include <dev/random/hash.h> 74#include <dev/random/randomdev.h> 75#include <dev/random/uint128.h> 76#include <dev/random/fortuna.h> 77#endif /* _KERNEL */ 78 79/* Defined in FS&K */ --- 343 unchanged lines hidden --- | 72 73#include <dev/random/hash.h> 74#include <dev/random/randomdev.h> 75#include <dev/random/uint128.h> 76#include <dev/random/fortuna.h> 77#endif /* _KERNEL */ 78 79/* Defined in FS&K */ --- 343 unchanged lines hidden --- |