An ICryptoProvider implementation using the Rijndael symmetric encryption algorithm.
More...
|
bool | IsInitialized [get] |
| Gets a value indicating whether IsInitialized. More...
|
|
PaddingMode | Padding [get] |
| Gets the padding mode used in the symmetric algorithm. The default is PaddingMode.PKCS7 More...
|
|
bool | IsInitialized [get] |
| Gets a value indicating whether IsInitialized. More...
|
|
An ICryptoProvider implementation using the Rijndael symmetric encryption algorithm.
◆ RijndaelCryptoProvider() [1/2]
Photon.SocketServer.Security.RijndaelCryptoProvider.RijndaelCryptoProvider |
( |
byte[] |
secretKey | ) |
|
|
inline |
Initializes a new instance of the RijndaelCryptoProvider class.
- Parameters
-
secretKey | The secret key for the symmetric algorithm. This algorithm supports key lengths of 128, 192, or 256 bits (16, 24 or 32 bytes). |
- Exceptions
-
CryptographicException | The key size is invalid. This algorithm supports key lengths of 128, 192, or 256 bits (16, 24 or 32 bytes). |
The secret key is used both for encryption and for decryption. For a symmetric algorithm to be successful, the secret key must be known only to the sender and the receiver.
◆ RijndaelCryptoProvider() [2/2]
Photon.SocketServer.Security.RijndaelCryptoProvider.RijndaelCryptoProvider |
( |
byte[] |
secretKey, |
|
|
PaddingMode |
paddingMode |
|
) |
| |
|
inline |
Initializes a new instance of the RijndaelCryptoProvider class.
- Parameters
-
secretKey | The secret key for the symmetric algorithm. This algorithm supports key lengths of 128, 192, or 256 bits. |
paddingMode | The padding mode. |
- Exceptions
-
CryptographicException | The key size is invalid. This algorithm supports key lengths of 128, 192, or 256 bits (16, 24 or 32 bytes). |
The secret key is used both for encryption and for decryption. For a symmetric algorithm to be successful, the secret key must be known only to the sender and the receiver.
◆ Decrypt() [1/2]
byte [] Photon.SocketServer.Security.RijndaelCryptoProvider.Decrypt |
( |
byte[] |
data | ) |
|
|
inline |
◆ Decrypt() [2/2]
byte [] Photon.SocketServer.Security.RijndaelCryptoProvider.Decrypt |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inline |
◆ DecryptInplace()
int Photon.SocketServer.Security.RijndaelCryptoProvider.DecryptInplace |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inline |
◆ Encrypt() [1/2]
byte [] Photon.SocketServer.Security.RijndaelCryptoProvider.Encrypt |
( |
byte[] |
data | ) |
|
|
inline |
◆ Encrypt() [2/2]
byte [] Photon.SocketServer.Security.RijndaelCryptoProvider.Encrypt |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inline |
◆ EncryptInplace()
int Photon.SocketServer.Security.RijndaelCryptoProvider.EncryptInplace |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inline |
◆ IsInitialized
bool Photon.SocketServer.Security.RijndaelCryptoProvider.IsInitialized |
|
get |
Gets a value indicating whether IsInitialized.
◆ Padding
PaddingMode Photon.SocketServer.Security.RijndaelCryptoProvider.Padding |
|
get |
Gets the padding mode used in the symmetric algorithm. The default is PaddingMode.PKCS7
The padding.