TripleDESCryptoServiceProvider Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Defines a wrapper object to access the cryptographic service provider (CSP) version of the TripleDES algorithm. This class cannot be inherited.
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT.Cryptoki. . :: . .SessionContainer
System.Security.Cryptography. . :: . .SymmetricAlgorithm
System.Security.Cryptography..::..TripleDESCryptoServiceProvider
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public NotInheritable Class TripleDESCryptoServiceProvider _
Inherits SymmetricAlgorithm
public sealed class TripleDESCryptoServiceProvider : SymmetricAlgorithm
public ref class TripleDESCryptoServiceProvider sealed : public SymmetricAlgorithm
[<Sealed>]
type TripleDESCryptoServiceProvider =
class
inherit SymmetricAlgorithm
end
public final class TripleDESCryptoServiceProvider extends SymmetricAlgorithm
The TripleDESCryptoServiceProvider type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TripleDESCryptoServiceProvider(CryptoKey) | Initializes a new instance of the TripleDESCryptoServiceProvider class with the specified key. | |
TripleDESCryptoServiceProvider(Int32) | Initializes a new instance of the TripleDESCryptoServiceProvider class with the specified key size. | |
TripleDESCryptoServiceProvider(Session, Int32) | Initializes a new instance of the TripleDESCryptoServiceProvider class with the specified session context and key size. | |
TripleDESCryptoServiceProvider(String, Int32) | Initializes a new instance of the TripleDESCryptoServiceProvider 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 TripleDES decryptor object with 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 TripleDES encryptor object with 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 be used 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 | Represents the key size to use if one is not provided. This field contains a value of 192. |
Top
Remarks
This algorithm supports key lengths from 128 bits to 192 bits in increments of 64 bits.
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.