equal
deleted
inserted
replaced
61 ~CRandomImpl(); |
61 ~CRandomImpl(); |
62 |
62 |
63 private: |
63 private: |
64 TUid iImplementationUid; |
64 TUid iImplementationUid; |
65 }; |
65 }; |
66 |
|
67 class TRandomImpl |
|
68 /** |
|
69 * The user interface to the system cryptographically |
|
70 * secure random number generator. |
|
71 * |
|
72 * @internalComponent |
|
73 * @released |
|
74 */ |
|
75 { |
|
76 public: |
|
77 |
|
78 /** |
|
79 * Fills the provided buffer with secure random data up to its |
|
80 * current length, discarding any current content. |
|
81 * |
|
82 * @param aDestination The buffer in which to write the random data. |
|
83 */ |
|
84 static void Random(TDes8& aDestination); |
|
85 }; |
|
86 |
|
87 class RRandomSessionImpl : public RSessionBase |
|
88 /** |
|
89 * The client interface to the system random number generator. End |
|
90 * users should use TRandom instead of this interface. |
|
91 * |
|
92 * @internalAll |
|
93 * @released |
|
94 */ |
|
95 { |
|
96 public: |
|
97 RRandomSessionImpl(); |
|
98 |
|
99 /** |
|
100 * Fills the provided buffer with secure random data up to its |
|
101 * current length, discarding any current content. |
|
102 * |
|
103 * @param aDestination The buffer in to which to write the random data |
|
104 */ |
|
105 TInt GetRandom(TDes8& aDestination); |
|
106 |
|
107 /** |
|
108 * Opens a new session with the random number server. |
|
109 */ |
|
110 void ConnectL(); |
|
111 }; |
|
112 } |
66 } |
113 |
67 |
114 #endif // __CRYPTOAPI_RANDOMIMPL_H__ |
68 #endif // __CRYPTOAPI_RANDOMIMPL_H__ |