Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/units/?format=api
https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "translator-credits" ], "previous_source": "", "target": [ "" ], "id_hash": -1950661098471372411, "content_hash": -1950661098471372411, "location": "", "context": "_", "note": "Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99165/?format=api", "priority": 100, "id": 394959, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=64eddc10e470c985", "url": "https://translate-dev.freebsd.org/api/units/394959/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.468014Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Independent Verification of IPsec Functionality in FreeBSD" ], "previous_source": "", "target": [ "" ], "id_hash": 131915356572416269, "content_hash": 131915356572416269, "location": "article.translate.xml:9", "context": "", "note": "(itstool) path: info/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/99166/?format=api", "priority": 100, "id": 394960, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=81d4a85160eaf90d", "url": "https://translate-dev.freebsd.org/api/units/394960/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.498978Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "<email>honig@sprynet.com</email>" ], "previous_source": "", "target": [ "" ], "id_hash": -6592535080680228329, "content_hash": -6592535080680228329, "location": "article.translate.xml:13", "context": "", "note": "(itstool) path: affiliation/address", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99167/?format=api", "priority": 100, "id": 394961, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=24829c45dac0fa17", "url": "https://translate-dev.freebsd.org/api/units/394961/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.508778Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "<personname><firstname>David</firstname><surname>Honig</surname></personname><affiliation> <_:address-1/> </affiliation>" ], "previous_source": "", "target": [ "" ], "id_hash": -8151810153265186774, "content_hash": -8151810153265186774, "location": "article.translate.xml:12", "context": "", "note": "(itstool) path: info/author", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/99168/?format=api", "priority": 100, "id": 394962, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=0edef3db1234b82a", "url": "https://translate-dev.freebsd.org/api/units/394962/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.513764Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "1999-05-03" ], "previous_source": "", "target": [ "" ], "id_hash": 71065521402245959, "content_hash": 71065521402245959, "location": "article.translate.xml:16", "context": "", "note": "(itstool) path: info/pubdate", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99169/?format=api", "priority": 100, "id": 394963, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=80fc79b716f57347", "url": "https://translate-dev.freebsd.org/api/units/394963/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.521909Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "FreeBSD is a registered trademark of the FreeBSD Foundation." ], "previous_source": "", "target": [ "" ], "id_hash": 8461976245352136157, "content_hash": 8461976245352136157, "location": "article.translate.xml:19", "context": "", "note": "(itstool) path: legalnotice/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/99170/?format=api", "priority": 100, "id": 394964, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=f56efa8fca01fddd", "url": "https://translate-dev.freebsd.org/api/units/394964/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.554028Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Motif, OSF/1, and UNIX are registered trademarks and IT DialTone and The Open Group are trademarks of The Open Group in the United States and other countries." ], "previous_source": "", "target": [ "" ], "id_hash": -7296726667533739674, "content_hash": -7296726667533739674, "location": "article.translate.xml:21", "context": "", "note": "(itstool) path: legalnotice/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/99171/?format=api", "priority": 100, "id": 394965, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=1abcd1c16e881966", "url": "https://translate-dev.freebsd.org/api/units/394965/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.560580Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this document, and the FreeBSD Project was aware of the trademark claim, the designations have been followed by the <quote>™</quote> or the <quote>®</quote> symbol." ], "previous_source": "", "target": [ "" ], "id_hash": 811499430864591908, "content_hash": 811499430864591908, "location": "article.translate.xml:25", "context": "", "note": "(itstool) path: legalnotice/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/99172/?format=api", "priority": 100, "id": 394966, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=8b43066ed01d9c24", "url": "https://translate-dev.freebsd.org/api/units/394966/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.566488Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "$FreeBSD: head/en_US.ISO8859-1/articles/ipsec-must/article.xml 52227 2018-09-06 01:30:47Z ebrandi $" ], "previous_source": "", "target": [ "" ], "id_hash": -6316972679110512261, "content_hash": -6316972679110512261, "location": "article.translate.xml:33", "context": "", "note": "(itstool) path: info/releaseinfo", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/99173/?format=api", "priority": 100, "id": 394967, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=28559ad12dc5317b", "url": "https://translate-dev.freebsd.org/api/units/394967/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.571532Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "You installed IPsec and it seems to be working. How do you know? I describe a method for experimentally verifying that IPsec is working." ], "previous_source": "", "target": [ "" ], "id_hash": -4353455707999273772, "content_hash": -4353455707999273772, "location": "article.translate.xml:36", "context": "", "note": "(itstool) path: abstract/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/99174/?format=api", "priority": 100, "id": 394968, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=43956b19634e7cd4", "url": "https://translate-dev.freebsd.org/api/units/394968/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.578092Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "The Problem" ], "previous_source": "", "target": [ "" ], "id_hash": -2549455742120794886, "content_hash": -2549455742120794886, "location": "article.translate.xml:43", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/99175/?format=api", "priority": 100, "id": 394969, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=5c9e8382984f64fa", "url": "https://translate-dev.freebsd.org/api/units/394969/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.584166Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "First, lets assume you have <link linkend=\"ipsec-install\"> installed <emphasis>IPsec</emphasis></link>. How do you know it is <link linkend=\"caveat\">working</link>? Sure, your connection will not work if it is misconfigured, and it will work when you finally get it right. <citerefentry><refentrytitle>netstat</refentrytitle><manvolnum>1</manvolnum></citerefentry> will list it. But can you independently confirm it?" ], "previous_source": "", "target": [ "" ], "id_hash": 7161249308243811426, "content_hash": 7161249308243811426, "location": "article.translate.xml:45", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 47, "source_unit": "https://translate-dev.freebsd.org/api/units/99176/?format=api", "priority": 100, "id": 394970, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=e361de4dcde25c62", "url": "https://translate-dev.freebsd.org/api/units/394970/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.590950Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "The Solution" ], "previous_source": "", "target": [ "" ], "id_hash": 5267631345575103038, "content_hash": 5267631345575103038, "location": "article.translate.xml:54", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/99177/?format=api", "priority": 100, "id": 394971, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=c91a62ccb8b78a3e", "url": "https://translate-dev.freebsd.org/api/units/394971/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.596151Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "First, some crypto-relevant info theory:" ], "previous_source": "", "target": [ "" ], "id_hash": 2806810401105959928, "content_hash": 2806810401105959928, "location": "article.translate.xml:56", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/99178/?format=api", "priority": 100, "id": 394972, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=a6f3cb304dcadbf8", "url": "https://translate-dev.freebsd.org/api/units/394972/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.608850Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Encrypted data is uniformly distributed, i.e., has maximal entropy per symbol;" ], "previous_source": "", "target": [ "" ], "id_hash": 7748893176201590704, "content_hash": 7748893176201590704, "location": "article.translate.xml:60", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/99179/?format=api", "priority": 100, "id": 394973, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=eb899949d1f1b7b0", "url": "https://translate-dev.freebsd.org/api/units/394973/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.613726Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Raw, uncompressed data is typically redundant, i.e., has sub-maximal entropy." ], "previous_source": "", "target": [ "" ], "id_hash": 691698547207348189, "content_hash": 691698547207348189, "location": "article.translate.xml:65", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/99180/?format=api", "priority": 100, "id": 394974, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=89996829f5f29fdd", "url": "https://translate-dev.freebsd.org/api/units/394974/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.618532Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Suppose you could measure the entropy of the data to- and from- your network interface. Then you could see the difference between unencrypted data and encrypted data. This would be true even if some of the data in <quote>encrypted mode</quote> was not encrypted---as the outermost IP header must be if the packet is to be routable." ], "previous_source": "", "target": [ "" ], "id_hash": 8733593454018641372, "content_hash": 8733593454018641372, "location": "article.translate.xml:70", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 56, "source_unit": "https://translate-dev.freebsd.org/api/units/99181/?format=api", "priority": 100, "id": 394975, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=f933f4f94f753ddc", "url": "https://translate-dev.freebsd.org/api/units/394975/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.624629Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "MUST" ], "previous_source": "", "target": [ "" ], "id_hash": 2188286607835164306, "content_hash": 2188286607835164306, "location": "article.translate.xml:78", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99182/?format=api", "priority": 100, "id": 394976, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=9e5e5b1366c26e92", "url": "https://translate-dev.freebsd.org/api/units/394976/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.629390Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Ueli Maurer's <quote>Universal Statistical Test for Random Bit Generators</quote>(<link xlink:href=\"https://web.archive.org/web/20011115002319/http://www.geocities.com/SiliconValley/Code/4704/universal.pdf\"> <acronym>MUST</acronym></link>) quickly measures the entropy of a sample. It uses a compression-like algorithm. <link linkend=\"code\">The code is given below</link> for a variant which measures successive (~quarter megabyte) chunks of a file." ], "previous_source": "", "target": [ "" ], "id_hash": 3475124142582450753, "content_hash": 3475124142582450753, "location": "article.translate.xml:80", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/99183/?format=api", "priority": 100, "id": 394977, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=b03a1efee502ca41", "url": "https://translate-dev.freebsd.org/api/units/394977/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.634250Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Tcpdump" ], "previous_source": "", "target": [ "" ], "id_hash": -122835142327097516, "content_hash": -122835142327097516, "location": "article.translate.xml:89", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99184/?format=api", "priority": 100, "id": 394978, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=7e4b9a16bfa8a754", "url": "https://translate-dev.freebsd.org/api/units/394978/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.640252Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "We also need a way to capture the raw network data. A program called <citerefentry><refentrytitle>tcpdump</refentrytitle><manvolnum>1</manvolnum></citerefentry> lets you do this, if you have enabled the <emphasis>Berkeley Packet Filter</emphasis> interface in your <link linkend=\"kernel\">kernel's config file</link>." ], "previous_source": "", "target": [ "" ], "id_hash": 3606622153828984855, "content_hash": 3606622153828984855, "location": "article.translate.xml:91", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/99185/?format=api", "priority": 100, "id": 394979, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=b20d4bbd7e07e817", "url": "https://translate-dev.freebsd.org/api/units/394979/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.645569Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "The command:" ], "previous_source": "", "target": [ "" ], "id_hash": 6195878018775752747, "content_hash": 6195878018775752747, "location": "article.translate.xml:97", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/99186/?format=api", "priority": 100, "id": 394980, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=d5fc2e3b1cc7a02b", "url": "https://translate-dev.freebsd.org/api/units/394980/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.651482Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "<userinput>tcpdump -c 4000 -s 10000 -w <replaceable>dumpfile.bin</replaceable></userinput>" ], "previous_source": "", "target": [ "" ], "id_hash": -4722487439264219991, "content_hash": -4722487439264219991, "location": "article.translate.xml:99", "context": "", "note": "(itstool) path: sect2/screen", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/99187/?format=api", "priority": 100, "id": 394981, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=3e765ab1de697ca9", "url": "https://translate-dev.freebsd.org/api/units/394981/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.656677Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "will capture 4000 raw packets to <replaceable>dumpfile.bin</replaceable>. Up to 10,000 bytes per packet will be captured in this example." ], "previous_source": "", "target": [ "" ], "id_hash": -7305859292656036298, "content_hash": -7305859292656036298, "location": "article.translate.xml:101", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/99188/?format=api", "priority": 100, "id": 394982, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=1a9c5fae72401636", "url": "https://translate-dev.freebsd.org/api/units/394982/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.661562Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "The Experiment" ], "previous_source": "", "target": [ "" ], "id_hash": 5938710690148679874, "content_hash": 5938710690148679874, "location": "article.translate.xml:108", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/99189/?format=api", "priority": 100, "id": 394983, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=d26a89e8762080c2", "url": "https://translate-dev.freebsd.org/api/units/394983/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.666458Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Here is the experiment:" ], "previous_source": "", "target": [ "" ], "id_hash": -8201500296587077056, "content_hash": -8201500296587077056, "location": "article.translate.xml:110", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/99190/?format=api", "priority": 100, "id": 394984, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=0e2e6aef04aa9a40", "url": "https://translate-dev.freebsd.org/api/units/394984/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.671202Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Open a window to an IPsec host and another window to an insecure host." ], "previous_source": "", "target": [ "" ], "id_hash": -603222663375028913, "content_hash": -603222663375028913, "location": "article.translate.xml:114", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/99191/?format=api", "priority": 100, "id": 394985, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=77a0ec2f0510fd4f", "url": "https://translate-dev.freebsd.org/api/units/394985/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.676016Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Now start <link linkend=\"tcpdump\">capturing packets</link>." ], "previous_source": "", "target": [ "" ], "id_hash": -9137217250648798690, "content_hash": -9137217250648798690, "location": "article.translate.xml:119", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/99192/?format=api", "priority": 100, "id": 394986, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=013215525381ca1e", "url": "https://translate-dev.freebsd.org/api/units/394986/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.704680Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "In the <quote>secure</quote> window, run the <trademark class=\"registered\">UNIX</trademark> command <citerefentry><refentrytitle>yes</refentrytitle><manvolnum>1</manvolnum></citerefentry>, which will stream the <literal>y</literal> character. After a while, stop this. Switch to the insecure window, and repeat. After a while, stop." ], "previous_source": "", "target": [ "" ], "id_hash": -7933192457614573499, "content_hash": -7933192457614573499, "location": "article.translate.xml:124", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/99193/?format=api", "priority": 100, "id": 394987, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=11e7a37ddd134045", "url": "https://translate-dev.freebsd.org/api/units/394987/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.713899Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Now run <link linkend=\"code\">MUST</link> on the captured packets. You should see something like the following. The important thing to note is that the secure connection has 93% (6.7) of the expected value (7.18), and the <quote>normal</quote> connection has 29% (2.1) of the expected value." ], "previous_source": "", "target": [ "" ], "id_hash": -7469430518019007363, "content_hash": -7469430518019007363, "location": "article.translate.xml:131", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/99194/?format=api", "priority": 100, "id": 394988, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=18574084c303dc7d", "url": "https://translate-dev.freebsd.org/api/units/394988/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.719987Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "<prompt>%</prompt> <userinput>tcpdump -c 4000 -s 10000 -w <replaceable>ipsecdemo.bin</replaceable></userinput>\n<prompt>%</prompt> <userinput>uliscan <replaceable>ipsecdemo.bin</replaceable></userinput>\n\nUliscan 21 Dec 98\nL=8 256 258560\nMeasuring file ipsecdemo.bin\nInit done\nExpected value for L=8 is 7.1836656\n6.9396 --------------------------------------------------------\n6.6177 -----------------------------------------------------\n6.4100 ---------------------------------------------------\n2.1101 -----------------\n2.0838 -----------------\n2.0983 -----------------" ], "previous_source": "", "target": [ "" ], "id_hash": 7040428878189671492, "content_hash": 7040428878189671492, "location": "article.translate.xml:138", "context": "", "note": "(itstool) path: step/screen", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/99195/?format=api", "priority": 100, "id": 394989, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=e1b4a0c34ee5b444", "url": "https://translate-dev.freebsd.org/api/units/394989/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.725640Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Caveat" ], "previous_source": "", "target": [ "" ], "id_hash": 7289565893136329904, "content_hash": 7289565893136329904, "location": "article.translate.xml:157", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99196/?format=api", "priority": 100, "id": 394990, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=e529bd8edb31acb0", "url": "https://translate-dev.freebsd.org/api/units/394990/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.738351Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "This experiment shows that IPsec <emphasis>does</emphasis> seem to be distributing the payload data <emphasis>uniformly</emphasis>, as encryption should. However, the experiment described here <emphasis>cannot</emphasis> detect many possible flaws in a system (none of which do I have any evidence for). These include poor key generation or exchange, data or keys being visible to others, use of weak algorithms, kernel subversion, etc. Study the source; know the code." ], "previous_source": "", "target": [ "" ], "id_hash": -7711871199365621527, "content_hash": -7711871199365621527, "location": "article.translate.xml:159", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/99197/?format=api", "priority": 100, "id": 394991, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=14f9ee00e03f18e9", "url": "https://translate-dev.freebsd.org/api/units/394991/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.747044Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "IPsec---Definition" ], "previous_source": "", "target": [ "" ], "id_hash": 214598172046298909, "content_hash": 214598172046298909, "location": "article.translate.xml:171", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99198/?format=api", "priority": 100, "id": 394992, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=82fa67e686448f1d", "url": "https://translate-dev.freebsd.org/api/units/394992/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.753258Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Internet Protocol security extensions to IPv4; required for IPv6. A protocol for negotiating encryption and authentication at the IP (host-to-host) level. SSL secures only one application socket; <application>SSH</application> secures only a login; <application>PGP</application> secures only a specified file or message. IPsec encrypts everything between two hosts." ], "previous_source": "", "target": [ "" ], "id_hash": 1374422774081451997, "content_hash": 1374422774081451997, "location": "article.translate.xml:173", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/99199/?format=api", "priority": 100, "id": 394993, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=9312ee3b2454f7dd", "url": "https://translate-dev.freebsd.org/api/units/394993/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.757874Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Installing IPsec" ], "previous_source": "", "target": [ "" ], "id_hash": 6655249910418755355, "content_hash": 6655249910418755355, "location": "article.translate.xml:182", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/99200/?format=api", "priority": 100, "id": 394994, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=dc5c328851f5cf1b", "url": "https://translate-dev.freebsd.org/api/units/394994/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.763360Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Most of the modern versions of FreeBSD have IPsec support in their base source. So you will need to include the <option>IPSEC</option> option in your kernel config and, after kernel rebuild and reinstall, configure IPsec connections using <citerefentry><refentrytitle>setkey</refentrytitle><manvolnum>8</manvolnum></citerefentry> command." ], "previous_source": "", "target": [ "" ], "id_hash": 3641991986588291222, "content_hash": 3641991986588291222, "location": "article.translate.xml:184", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/99201/?format=api", "priority": 100, "id": 394995, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=b28af46a6b6a1096", "url": "https://translate-dev.freebsd.org/api/units/394995/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.768391Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "A comprehensive guide on running IPsec on FreeBSD is provided in <link xlink:href=\"@@URL_RELPREFIX@@/doc/en_US.ISO8859-1/books/handbook/ipsec.html\">FreeBSD Handbook</link>." ], "previous_source": "", "target": [ "" ], "id_hash": -8281851445905594208, "content_hash": -8281851445905594208, "location": "article.translate.xml:190", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/99202/?format=api", "priority": 100, "id": 394996, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=0d10f3fd343de8a0", "url": "https://translate-dev.freebsd.org/api/units/394996/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.773966Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "src/sys/i386/conf/KERNELNAME" ], "previous_source": "", "target": [ "" ], "id_hash": -5873467287557378836, "content_hash": -5873467287557378836, "location": "article.translate.xml:196", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/99203/?format=api", "priority": 100, "id": 394997, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=2e7d409ef543ecec", "url": "https://translate-dev.freebsd.org/api/units/394997/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.779471Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "This needs to be present in the kernel config file in order to capture network data with <citerefentry><refentrytitle>tcpdump</refentrytitle><manvolnum>1</manvolnum></citerefentry>. Be sure to run <citerefentry><refentrytitle>config</refentrytitle><manvolnum>8</manvolnum></citerefentry> after adding this, and rebuild and reinstall." ], "previous_source": "", "target": [ "" ], "id_hash": -3586506500452533962, "content_hash": -3586506500452533962, "location": "article.translate.xml:198", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/99204/?format=api", "priority": 100, "id": 394998, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=4e3a2b5707e5b936", "url": "https://translate-dev.freebsd.org/api/units/394998/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.784378Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "device\tbpf" ], "previous_source": "", "target": [ "" ], "id_hash": 8147209031732059285, "content_hash": 8147209031732059285, "location": "article.translate.xml:203", "context": "", "note": "(itstool) path: sect1/programlisting", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/99205/?format=api", "priority": 100, "id": 394999, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=f110b372d73e5c95", "url": "https://translate-dev.freebsd.org/api/units/394999/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.789487Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "Maurer's Universal Statistical Test (for block size=8 bits)" ], "previous_source": "", "target": [ "" ], "id_hash": 8447471188569576866, "content_hash": 8447471188569576866, "location": "article.translate.xml:207", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/99206/?format=api", "priority": 100, "id": 395000, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=f53b724a150955a2", "url": "https://translate-dev.freebsd.org/api/units/395000/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.794099Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "You can find the same code at <link xlink:href=\"https://web.archive.org/web/20031204230654/http://www.geocities.com:80/SiliconValley/Code/4704/uliscanc.txt\"> this link</link>." ], "previous_source": "", "target": [ "" ], "id_hash": -6942705009023086126, "content_hash": -6942705009023086126, "location": "article.translate.xml:210", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/99207/?format=api", "priority": 100, "id": 395001, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=1fa68e940cda91d2", "url": "https://translate-dev.freebsd.org/api/units/395001/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.798987Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_ipsec-must/zh_Hans/?format=api", "source": [ "/*\n ULISCAN.c ---blocksize of 8\n\n 1 Oct 98\n 1 Dec 98\n 21 Dec 98 uliscan.c derived from ueli8.c\n\n This version has // comments removed for Sun cc\n\n This implements Ueli M Maurer's \"Universal Statistical Test for Random\n Bit Generators\" using L=8\n\n Accepts a filename on the command line; writes its results, with other\n info, to stdout.\n\n Handles input file exhaustion gracefully.\n\n Ref: J. Cryptology v 5 no 2, 1992 pp 89-105\n also on the web somewhere, which is where I found it.\n\n -David Honig\n honig@sprynet.com\n\n Usage:\n ULISCAN filename\n outputs to stdout\n*/\n\n#define L 8\n#define V (1<<L)\n#define Q (10*V)\n#define K (100 *Q)\n#define MAXSAMP (Q + K)\n\n#include <stdio.h>\n#include <math.h>\n\nint main(argc, argv)\nint argc;\nchar **argv;\n{\n FILE *fptr;\n int i,j;\n int b, c;\n int table[V];\n double sum = 0.0;\n int iproduct = 1;\n int run;\n\n extern double log(/* double x */);\n\n printf(\"Uliscan 21 Dec 98 \\nL=%d %d %d \\n\", L, V, MAXSAMP);\n\n if (argc < 2) {\n printf(\"Usage: Uliscan filename\\n\");\n exit(-1);\n } else {\n printf(\"Measuring file %s\\n\", argv[1]);\n }\n\n fptr = fopen(argv[1],\"rb\");\n\n if (fptr == NULL) {\n printf(\"Can't find %s\\n\", argv[1]);\n exit(-1);\n }\n\n for (i = 0; i < V; i++) {\n table[i] = 0;\n }\n\n for (i = 0; i < Q; i++) {\n b = fgetc(fptr);\n table[b] = i;\n }\n\n printf(\"Init done\\n\");\n\n printf(\"Expected value for L=8 is 7.1836656\\n\");\n\n run = 1;\n\n while (run) {\n sum = 0.0;\n iproduct = 1;\n\n if (run)\n for (i = Q; run && i < Q + K; i++) {\n j = i;\n b = fgetc(fptr);\n\n if (b < 0)\n run = 0;\n\n if (run) {\n if (table[b] > j)\n j += K;\n\n sum += log((double)(j-table[b]));\n\n table[b] = i;\n }\n }\n\n if (!run)\n printf(\"Premature end of file; read %d blocks.\\n\", i - Q);\n\n sum = (sum/((double)(i - Q))) / log(2.0);\n printf(\"%4.4f \", sum);\n\n for (i = 0; i < (int)(sum*8.0 + 0.50); i++)\n printf(\"-\");\n\n printf(\"\\n\");\n\n /* refill initial table */\n if (0) {\n for (i = 0; i < Q; i++) {\n b = fgetc(fptr);\n if (b < 0) {\n run = 0;\n } else {\n table[b] = i;\n }\n }\n }\n }\n}" ], "previous_source": "", "target": [ "" ], "id_hash": 183556058522984777, "content_hash": 183556058522984777, "location": "article.translate.xml:213", "context": "", "note": "(itstool) path: sect1/programlisting", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 357, "source_unit": "https://translate-dev.freebsd.org/api/units/99208/?format=api", "priority": 100, "id": 395002, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_ipsec-must/zh_Hans/?checksum=828c1f4340a22149", "url": "https://translate-dev.freebsd.org/api/units/395002/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-02-22T23:02:19.808999Z" } ] }{ "count": 44, "next": null, "previous": null, "results": [ { "translation": "