aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/beos_stats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-28 16:44:05 -0400
committerJack Lloyd <[email protected]>2016-10-28 16:49:11 -0400
commitf98c184fe66e6c0f624b381a186c6dddfc62539a (patch)
tree325aca069972bf38d92032d74b4a3d53d5b081d9 /src/lib/entropy/beos_stats
parent8141ea4c2a51e908fae3ebb463154acffeac9186 (diff)
Remove HMAC_RNG, X9.31-RNG, BeOS stats, EGD reader, Unix process runner
Change AutoSeeded_RNG to use SHA-384, SHA-256, SHA-3(256), or SHA-1, whichever is available (in that order).
Diffstat (limited to 'src/lib/entropy/beos_stats')
-rw-r--r--src/lib/entropy/beos_stats/es_beos.cpp66
-rw-r--r--src/lib/entropy/beos_stats/es_beos.h28
-rw-r--r--src/lib/entropy/beos_stats/info.txt17
3 files changed, 0 insertions, 111 deletions
diff --git a/src/lib/entropy/beos_stats/es_beos.cpp b/src/lib/entropy/beos_stats/es_beos.cpp
deleted file mode 100644
index 907ca37bb..000000000
--- a/src/lib/entropy/beos_stats/es_beos.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-* BeOS EntropySource
-* (C) 1999-2008 Jack Lloyd
-*
-* Botan is released under the Simplified BSD License (see license.txt)
-*/
-
-#include <botan/internal/es_beos.h>
-
-#include <kernel/OS.h>
-#include <kernel/image.h>
-#include <interface/InterfaceDefs.h>
-
-namespace Botan {
-
-/**
-* BeOS entropy poll
-*/
-size_t BeOS_EntropySource::poll(RandomNumberGenerator& rng)
- {
- size_t bits = 0;
-
- system_info info_sys;
- get_system_info(&info_sys);
- rng.add_entropy_T(info_sys);
-
- key_info info_key; // current state of the keyboard
- get_key_info(&info_key);
- rng.add_entropy_T(info_key);
-
- team_info info_team;
- int32 cookie_team = 0;
-
- while(get_next_team_info(&cookie_team, &info_team) == B_OK)
- {
- rng.add_entropy_T(info_team);
-
- team_id id = info_team.team;
- int32 cookie = 0;
-
- thread_info info_thr;
- while(get_next_thread_info(id, &cookie, &info_thr) == B_OK)
- rng.add_entropy_T(info_thr);
-
- cookie = 0;
- image_info info_img;
- while(get_next_image_info(id, &cookie, &info_img) == B_OK)
- rng.add_entropy_T(info_img);
-
- cookie = 0;
- sem_info info_sem;
- while(get_next_sem_info(id, &cookie, &info_sem) == B_OK)
- rng.add_entropy_T(info_sem);
-
- cookie = 0;
- area_info info_area;
- while(get_next_area_info(id, &cookie, &info_area) == B_OK)
- rng.add_entropy_T(info_area);
-
- bits += 32;
- }
-
- return bits;
- }
-
-}
diff --git a/src/lib/entropy/beos_stats/es_beos.h b/src/lib/entropy/beos_stats/es_beos.h
deleted file mode 100644
index e40433b6c..000000000
--- a/src/lib/entropy/beos_stats/es_beos.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
-* BeOS EntropySource
-* (C) 1999-2008 Jack Lloyd
-*
-* Botan is released under the Simplified BSD License (see license.txt)
-*/
-
-#ifndef BOTAN_ENTROPY_SRC_BEOS_H__
-#define BOTAN_ENTROPY_SRC_BEOS_H__
-
-#include <botan/entropy_src.h>
-
-namespace Botan {
-
-/**
-* BeOS Entropy Source
-*/
-class BeOS_EntropySource final : public Entropy_Source
- {
- private:
- std::string name() const override { return "system_stats"; }
-
- size_t poll(RandomNumberGenerator& rng) override;
- };
-
-}
-
-#endif
diff --git a/src/lib/entropy/beos_stats/info.txt b/src/lib/entropy/beos_stats/info.txt
deleted file mode 100644
index 9ae527f49..000000000
--- a/src/lib/entropy/beos_stats/info.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-define ENTROPY_SRC_BEOS 20131128
-
-<source>
-es_beos.cpp
-</source>
-
-<header:internal>
-es_beos.h
-</header:internal>
-
-<os>
-haiku
-</os>
-
-<libs>
-haiku -> root,be
-</libs>