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.]
Performs symmetric encryption and decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard (AES) algorithm.
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT.Cryptoki. . :: . .SessionContainer
System.Security.Cryptography. . :: . .SymmetricAlgorithm
System.Security.Cryptography..::..AesCryptoServiceProvider
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public NotInheritable Class AesCryptoServiceProvider _
Inherits SymmetricAlgorithm
public sealed class AesCryptoServiceProvider : SymmetricAlgorithm
public ref class AesCryptoServiceProvider sealed : public SymmetricAlgorithm
[<Sealed>]
type AesCryptoServiceProvider =
class
inherit SymmetricAlgorithm
end
public final class AesCryptoServiceProvider extends SymmetricAlgorithm
The AesCryptoServiceProvider type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
AesCryptoServiceProvider(CryptoKey) | Initializes a new instance of the AesCryptoServiceProvider class with the specified key. |
![]() |
AesCryptoServiceProvider(Int32) | Initializes a new instance of the AesCryptoServiceProvider class with the specified key size. |
![]() |
AesCryptoServiceProvider(Session, Int32) | Initializes a new instance of the AesCryptoServiceProvider class with the specified session context and key size. |
![]() |
AesCryptoServiceProvider(String, Int32) | Initializes a new instance of the AesCryptoServiceProvider class with the specified service provider and key size. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
BlockSize | Gets or sets the block size, in bits, of the cryptographic operation. (Inherited from SymmetricAlgorithm.) |
![]() |
FeedbackSize | Gets or sets the feedback size, in bits, of the cryptographic operation. (Inherited from SymmetricAlgorithm.) |
![]() |
IsDisposed | (Inherited from SessionContainer.) |
![]() |
IV | Gets or sets the initialization vector (IV) for the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
Key | Gets or sets the secret key for the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
KeySize | Gets or sets the size, in bits, of the secret key used by the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
LegalBlockSizes | Gets the block sizes, in bits, that are supported by the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
LegalKeySizes | Gets the key sizes, in bits, that are supported by the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
Mode | Gets or sets the mode for operation of the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
Padding | Gets or sets the padding mode used in the symmetric algorithm. (Inherited from SymmetricAlgorithm.) |
![]() |
Session | (Inherited from SessionContainer.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Clear | Releases all resources used by the SymmetricAlgorithm class. (Inherited from SymmetricAlgorithm.) |
![]() |
CreateDecryptor() () () () | Creates a symmetric decryptor object with the current Key property and initialization vector (IV). (Inherited from SymmetricAlgorithm.) |
![]() |
CreateDecryptor(CryptoKey, array<Byte> [] () [] []) | Creates a symmetric AES decryptor object using the specified key and initialization vector (IV). (Overrides SymmetricAlgorithm. . :: . .CreateDecryptor(CryptoKey, array<Byte> [] () [] []).) |
![]() |
CreateEncryptor() () () () | Creates a symmetric encryptor object with the current Key property and initialization vector (IV). (Inherited from SymmetricAlgorithm.) |
![]() |
CreateEncryptor(CryptoKey, array<Byte> [] () [] []) | Creates a symmetric AES encryptor object using the specified key and initialization vector (IV). (Overrides SymmetricAlgorithm. . :: . .CreateEncryptor(CryptoKey, array<Byte> [] () [] []).) |
![]() |
Dispose() () () () | (Inherited from SessionContainer.) |
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
GenerateIV | Generates a random initialization vector (IV) to use for the algorithm. (Overrides SymmetricAlgorithm. . :: . .GenerateIV() () () ().) |
![]() |
GenerateKey | Generates a random key to use for the algorithm. (Overrides SymmetricAlgorithm. . :: . .GenerateKey() () () ().) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
ValidKeySize | Determines whether the specified key size is valid for the current algorithm. (Inherited from SymmetricAlgorithm.) |
Top
Fields
| Name | Description | |
|---|---|---|
![]() ![]() |
DefaultKeySize | The default size, in bits, of the secret key used by the symmetric algorithm. |
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)