equal
deleted
inserted
replaced
9 --> |
9 --> |
10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-66BBA81D-2488-50B8-8822-43AAAA139DDE" xml:lang="en"><title>Overview |
12 <concept id="GUID-66BBA81D-2488-50B8-8822-43AAAA139DDE" xml:lang="en"><title>Overview |
13 of random number generation</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 of random number generation</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
14 <section id="GUID-B5BD3E1A-AFBB-5526-B5EA-8FA51A17E596-GENID-1-12-1-27-1-1-9-1-4-1-8-1-2-1"><title>Overview</title> <p>The |
14 <section id="GUID-B5BD3E1A-AFBB-5526-B5EA-8FA51A17E596-GENID-1-12-1-26-1-1-9-1-4-1-8-1-2-1"><title>Overview</title> <p>The |
15 purpose of the Random Number Generation API is the generation of cryptographically |
15 purpose of the Random Number Generation API is the generation of cryptographically |
16 strong random numbers. </p> <p>Several cryptographic applications rely upon |
16 strong random numbers. </p> <p>Several cryptographic applications rely upon |
17 the randomness, unpredictability and irreproducibility of the random number |
17 the randomness, unpredictability and irreproducibility of the random number |
18 generator, such as: </p> <ul> |
18 generator, such as: </p> <ul> |
19 <li id="GUID-15685756-F94B-508C-A08C-8F0ECBC1A4AA"><p>one-time pads </p> </li> |
19 <li id="GUID-15685756-F94B-508C-A08C-8F0ECBC1A4AA"><p>one-time pads </p> </li> |
36 Number Generation API</title> <p>The diagram below shows the main classes |
36 Number Generation API</title> <p>The diagram below shows the main classes |
37 used in the RNG, which are implemented in <filepath>random.dll</filepath>. |
37 used in the RNG, which are implemented in <filepath>random.dll</filepath>. |
38 For information on each class see the Cryptography API Reference material. </p> <fig id="GUID-5326D881-8795-5803-8B82-EC02C0C40226"> |
38 For information on each class see the Cryptography API Reference material. </p> <fig id="GUID-5326D881-8795-5803-8B82-EC02C0C40226"> |
39 <title> The inheritance hierarchy for the RRandomSession and |
39 <title> The inheritance hierarchy for the RRandomSession and |
40 CSystemRandom classes </title> |
40 CSystemRandom classes </title> |
41 <image href="GUID-FD1BB5C6-A042-56C9-8F1F-B51BF9DF5389_d0e625301_href.png" placement="inline"/> |
41 <image href="GUID-FD1BB5C6-A042-56C9-8F1F-B51BF9DF5389_d0e597407_href.png" placement="inline"/> |
42 </fig><p><b>How to use TRandom</b> </p> <p> <codeph>TRandom</codeph> is a |
42 </fig><p><b>How to use TRandom</b> </p> <p> <codeph>TRandom</codeph> is a |
43 cryptographically stong random number generator. Its declaration is: </p> <codeblock id="GUID-53D847C3-2A1A-51D8-93FA-F68EA2374551" xml:space="preserve">class TRandom |
43 cryptographically stong random number generator. Its declaration is: </p> <codeblock id="GUID-53D847C3-2A1A-51D8-93FA-F68EA2374551" xml:space="preserve">class TRandom |
44 { |
44 { |
45 public: |
45 public: |
46 IMPORT_C static void RandomL(TDes8& aDestination); |
46 IMPORT_C static void RandomL(TDes8& aDestination); |