€•uGŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ)/translations/zh_CN/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/zh_TW/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/it_IT/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/ja_JP/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/ko_KR/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/pt_BR/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/sp_SP/admin-guide/hw_random”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ!Hardware random number generators”h]”hŒ!Hardware random number generators”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³ŒC/var/lib/git/docbuild/linux/Documentation/admin-guide/hw_random.rst”h´Kubh¶)”}”(hhh]”(h»)”}”(hŒ Introduction”h]”hŒ Introduction”…””}”(hhÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhhËh²hh³hÊh´KubhŒ paragraph”“”)”}”(hX-The hw_random framework is software that makes use of a special hardware feature on your CPU or motherboard, a Random Number Generator (RNG). The software has two parts: a core providing the /dev/hwrng character device and its sysfs support, plus a hardware-specific driver that plugs into that core.”h]”hX-The hw_random framework is software that makes use of a special hardware feature on your CPU or motherboard, a Random Number Generator (RNG). The software has two parts: a core providing the /dev/hwrng character device and its sysfs support, plus a hardware-specific driver that plugs into that core.”…””}”(hhÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´KhhËh²hubhÝ)”}”(hŒ£To make the most effective use of these mechanisms, you should download the support software as well. Download the latest version of the "rng-tools" package from:”h]”hŒ§To make the most effective use of these mechanisms, you should download the support software as well. Download the latest version of the “rng-tools†package from:”…””}”(hhìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´KhhËh²hubhŒ block_quote”“”)”}”(hŒ%https://github.com/nhorman/rng-tools ”h]”hÝ)”}”(hŒ$https://github.com/nhorman/rng-tools”h]”hŒ reference”“”)”}”(hjh]”hŒ$https://github.com/nhorman/rng-tools”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”juh1jhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Khhüubah}”(h]”h ]”h"]”h$]”h&]”uh1húh³hÊh´KhhËh²hubhÝ)”}”(hŒ”Those tools use /dev/hwrng to fill the kernel entropy pool, which is used internally and exported by the /dev/urandom and /dev/random special files.”h]”hŒ”Those tools use /dev/hwrng to fill the kernel entropy pool, which is used internally and exported by the /dev/urandom and /dev/random special files.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´KhhËh²hubeh}”(h]”Œ introduction”ah ]”h"]”Œ introduction”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒTheory of operation”h]”hŒTheory of operation”…””}”(hj9h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj6h²hh³hÊh´KubhÝ)”}”(hX´CHARACTER DEVICE. Using the standard open() and read() system calls, you can read random data from the hardware RNG device. This data is NOT CHECKED by any fitness tests, and could potentially be bogus (if the hardware is faulty or has been tampered with). Data is only output if the hardware "has-data" flag is set, but nevertheless a security-conscious person would run fitness tests on the data before assuming it is truly random.”h]”hX¸CHARACTER DEVICE. Using the standard open() and read() system calls, you can read random data from the hardware RNG device. This data is NOT CHECKED by any fitness tests, and could potentially be bogus (if the hardware is faulty or has been tampered with). Data is only output if the hardware “has-data†flag is set, but nevertheless a security-conscious person would run fitness tests on the data before assuming it is truly random.”…””}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Khj6h²hubhÝ)”}”(hŒhThe rng-tools package uses such tests in "rngd", and lets you run them by hand with a "rngtest" utility.”h]”hŒpThe rng-tools package uses such tests in “rngdâ€, and lets you run them by hand with a “rngtest†utility.”…””}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K%hj6h²hubhÝ)”}”(hŒ./dev/hwrng is char device major 10, minor 183.”h]”hŒ./dev/hwrng is char device major 10, minor 183.”…””}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K(hj6h²hubhÝ)”}”(hX§CLASS DEVICE. There is a /sys/class/misc/hw_random node with two unique attributes, "rng_available" and "rng_current". The "rng_available" attribute lists the hardware-specific drivers available, while "rng_current" lists the one which is currently connected to /dev/hwrng. If your system has more than one RNG available, you may change the one used by writing a name from the list in "rng_available" into "rng_current".”h]”hX¿CLASS DEVICE. There is a /sys/class/misc/hw_random node with two unique attributes, “rng_available†and “rng_currentâ€. The “rng_available†attribute lists the hardware-specific drivers available, while “rng_current†lists the one which is currently connected to /dev/hwrng. If your system has more than one RNG available, you may change the one used by writing a name from the list in “rng_available†into “rng_currentâ€.”…””}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K*hj6h²hubhŒ transition”“”)”}”(hŒJ==========================================================================”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´K2hj6h²hubhŒdefinition_list”“”)”}”(hhh]”hŒdefinition_list_item”“”)”}”(hŒ¶Hardware driver for Intel/AMD/VIA Random Number Generators (RNG) - Copyright 2000,2001 Jeff Garzik - Copyright 2000,2001 Philipp Rumpf ”h]”(hŒterm”“”)”}”(hŒ@Hardware driver for Intel/AMD/VIA Random Number Generators (RNG)”h]”hŒ@Hardware driver for Intel/AMD/VIA Random Number Generators (RNG)”…””}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–h³hÊh´K8hj’ubhŒ definition”“”)”}”(hhh]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ3Copyright 2000,2001 Jeff Garzik ”h]”hÝ)”}”(hj´h]”(hŒ!Copyright 2000,2001 Jeff Garzik <”…””}”(hj¶h²hh³Nh´Nubj)”}”(hŒjgarzik@pobox.com”h]”hŒjgarzik@pobox.com”…””}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:jgarzik@pobox.com”uh1jhj¶ubhŒ>”…””}”(hj¶h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K6hj²ubah}”(h]”h ]”h"]”h$]”h&]”uh1j°hj­ubj±)”}”(hŒ=Copyright 2000,2001 Philipp Rumpf ”h]”hÝ)”}”(hŒ;Copyright 2000,2001 Philipp Rumpf ”h]”(hŒ#Copyright 2000,2001 Philipp Rumpf <”…””}”(hjáh²hh³Nh´Nubj)”}”(hŒprumpf@mandrakesoft.com”h]”hŒprumpf@mandrakesoft.com”…””}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:prumpf@mandrakesoft.com”uh1jhjáubhŒ>”…””}”(hjáh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K7hjÝubah}”(h]”h ]”h"]”h$]”h&]”uh1j°hj­ubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j«h³hÊh´K6hj¨ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¦hj’ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´K8hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j‹hj6h²hh³Nh´Nubeh}”(h]”Œtheory-of-operation”ah ]”h"]”Œtheory of operation”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒ=About the Intel RNG hardware, from the firmware hub datasheet”h]”hŒ=About the Intel RNG hardware, from the firmware hub datasheet”…””}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj+h²hh³hÊh´K;ubhÝ)”}”(hX·The Firmware Hub integrates a Random Number Generator (RNG) using thermal noise generated from inherently random quantum mechanical properties of silicon. When not generating new random bits the RNG circuitry will enter a low power state. Intel will provide a binary software driver to give third party software access to our RNG for use as a security feature. At this time, the RNG is only to be used with a system in an OS-present state.”h]”hX·The Firmware Hub integrates a Random Number Generator (RNG) using thermal noise generated from inherently random quantum mechanical properties of silicon. When not generating new random bits the RNG circuitry will enter a low power state. Intel will provide a binary software driver to give third party software access to our RNG for use as a security feature. At this time, the RNG is only to be used with a system in an OS-present state.”…””}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K=hj+h²hubeh}”(h]”Œ in /proc/iomem, and request_mem_region(RNG_ADDR) can succeed.”…””}”(hj½h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´KQhj¹ubah}”(h]”h ]”h"]”h$]”h&]”uh1j°hj‡ubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1j…hjsubeh}”(h]”h ]”h"]”h$]”h&]”uh1jqhjRh²hh³Nh´Nubeh}”(h]”Œintel-rng-driver-notes”ah ]”h"]”Œintel rng driver notes”ah$]”h&]”uh1hµhh·h²hh³hÊh´KFubh¶)”}”(hhh]”(h»)”}”(hŒDriver details”h]”hŒDriver details”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjþh²hh³hÊh´KYubjŒ)”}”(hhh]”(j‘)”}”(hŒaBased on: Intel 82802AB/82802AC Firmware Hub (FWH) Datasheet May 1999 Order Number: 290658-002 R ”h]”(j—)”}”(hŒ Based on:”h]”hŒ Based on:”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–h³hÊh´K]hjubj§)”}”(hhh]”hÝ)”}”(hŒVIntel 82802AB/82802AC Firmware Hub (FWH) Datasheet May 1999 Order Number: 290658-002 R”h]”hŒVIntel 82802AB/82802AC Firmware Hub (FWH) Datasheet May 1999 Order Number: 290658-002 R”…””}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K\hj$ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¦hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´K]hjubj‘)”}”(hŒyIntel 82802 Firmware Hub: Random Number Generator Programmer's Reference Manual December 1999 Order Number: 298029-001 R ”h]”(j—)”}”(hŒIntel 82802 Firmware Hub:”h]”hŒIntel 82802 Firmware Hub:”…””}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–h³hÊh´KbhjAubj§)”}”(hhh]”hÝ)”}”(hŒ^Random Number Generator Programmer's Reference Manual December 1999 Order Number: 298029-001 R”h]”hŒ`Random Number Generator Programmer’s Reference Manual December 1999 Order Number: 298029-001 R”…””}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K`hjSubah}”(h]”h ]”h"]”h$]”h&]”uh1j¦hjAubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´Kbhjh²hubj‘)”}”(hŒmIntel 82802 Firmware HUB Random Number Generator Driver Copyright (c) 2000 Matt Sottek ”h]”(j—)”}”(hŒ7Intel 82802 Firmware HUB Random Number Generator Driver”h]”hŒ7Intel 82802 Firmware HUB Random Number Generator Driver”…””}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–h³hÊh´Kehjpubj§)”}”(hhh]”hÝ)”}”(hŒ4Copyright (c) 2000 Matt Sottek ”h]”(hŒ Copyright (c) 2000 Matt Sottek <”…””}”(hj…h²hh³Nh´Nubj)”}”(hŒmsottek@quiknet.com”h]”hŒmsottek@quiknet.com”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:msottek@quiknet.com”uh1jhj…ubhŒ>”…””}”(hj…h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Kehj‚ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¦hjpubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´Kehjh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j‹hjþh²hh³hÊh´NubhÝ)”}”(hŒZSpecial thanks to Matt Sottek. I did the "guts", he did the "brains" and all the testing.”h]”hŒbSpecial thanks to Matt Sottek. I did the “gutsâ€, he did the “brains†and all the testing.”…””}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Kghjþh²hubeh}”(h]”Œdriver-details”ah ]”h"]”Œdriver details”ah$]”h&]”uh1hµhh·h²hh³hÊh´KYubeh}”(h]”Œ!hardware-random-number-generators”ah ]”h"]”Œ!hardware random number generators”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hºNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”júŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÊŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jÔjÑj3j0j(j%jOjLjûjøjÌjÉuŒ nametypes”}”(jÔ‰j3‰j(‰jO‰jû‰j̉uh}”(jÑh·j0hËj%j6jLj+jøjRjÉjþuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.