Share via


EncryptionAlgorithm Struct

Definition

An algorithm used for encryption and decryption.

public readonly struct EncryptionAlgorithm : IEquatable<Azure.Security.KeyVault.Keys.Cryptography.EncryptionAlgorithm>
type EncryptionAlgorithm = struct
Public Structure EncryptionAlgorithm
Implements IEquatable(Of EncryptionAlgorithm)
Inheritance
EncryptionAlgorithm
Implements

Constructors

EncryptionAlgorithm(String)

Initializes a new instance of the EncryptionAlgorithm structure.

Properties

A128Cbc

Gets a 128-bit AES-CBC EncryptionAlgorithm.

A128CbcPad

Gets a 128-bit AES-CBC EncryptionAlgorithm with PKCS padding.

A128Gcm

Gets a 128-bit AES-GCM EncryptionAlgorithm.

A192Cbc

Gets a 192-bit AES-CBC EncryptionAlgorithm.

A192CbcPad

Gets a 192-bit AES-CBC EncryptionAlgorithm with PKCS padding.

A192Gcm

Gets a 192-bit AES-GCM EncryptionAlgorithm.

A256Cbc

Gets a 256-bit AES-CBC EncryptionAlgorithm.

A256CbcPad

Gets a 256-bit AES-CBC EncryptionAlgorithm with PKCS padding.

A256Gcm

Gets a 256-bit AES-GCM EncryptionAlgorithm.

CkmAesKeyWrap

Gets a 256-bit CKM AES Key Wrap EncryptionAlgorithm.

CkmAesKeyWrapPad

Gets a 256-bit CKM AES Key Wrap EncryptionAlgorithm with PKCS padding.

Rsa15

[Not recommended] Gets an RSA1_5 EncryptionAlgorithm.

Microsoft recommends using RsaOaep256 or stronger algorithms for enhanced security. Microsoft does not recommend Rsa15, which is included solely for backwards compatibility. Cryptographic standards no longer consider RSA with the PKCS#1 v1.5 padding scheme secure for encryption.

RsaOaep

[Not recommended] Gets an RSA-OAEP EncryptionAlgorithm.

Microsoft recommends using RsaOaep256 or stronger algorithms for enhanced security. Microsoft does not recommend RsaOaep, which is included solely for backwards compatibility. RsaOaep utilizes SHA1, which has known collision problems.

RsaOaep256

Gets an RSA-OAEP256 EncryptionAlgorithm.

Methods

Equals(EncryptionAlgorithm)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(EncryptionAlgorithm, EncryptionAlgorithm)

Determines if two EncryptionAlgorithm values are the same.

Implicit(String to EncryptionAlgorithm)

Converts a string to a EncryptionAlgorithm.

Inequality(EncryptionAlgorithm, EncryptionAlgorithm)

Determines if two EncryptionAlgorithm values are different.

Applies to