Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT.Cryptoki. . :: . .SessionContainer
System.Security.Cryptography..::..RNGCryptoServiceProvider
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Class RNGCryptoServiceProvider _
Inherits SessionContainer
public class RNGCryptoServiceProvider : SessionContainer
public ref class RNGCryptoServiceProvider : public SessionContainer
type RNGCryptoServiceProvider =
class
inherit SessionContainer
end
public class RNGCryptoServiceProvider extends SessionContainer
The RNGCryptoServiceProvider type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
RNGCryptoServiceProvider(Session) | Initializes a new instance of the RNGCryptoServiceProvider class with the specified session context. |
![]() |
RNGCryptoServiceProvider(String) | Initializes a new instance of the RNGCryptoServiceProvider class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
IsDisposed | (Inherited from SessionContainer.) |
![]() |
Session | (Inherited from SessionContainer.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Dispose() () () () | (Inherited from SessionContainer.) |
![]() |
Dispose(Boolean) | (Inherited from SessionContainer.) |
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | (Inherited from SessionContainer.) |
![]() |
GetBytes | Fills an array of bytes with a cryptographically strong sequence of random values. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetNonZeroBytes | Fills an array of bytes with a cryptographically strong sequence of random nonzero values. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
| Name | Description | |
|---|---|---|
![]() |
m_isDisposed | (Inherited from SessionContainer.) |
![]() |
m_isSessionClosing | (Inherited from SessionContainer.) |
![]() |
m_ownsSession | (Inherited from SessionContainer.) |
![]() |
m_rng | |
![]() |
m_session | (Inherited from SessionContainer.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)
.gif)