CryptographicOperations Class

Definition

Provides methods for use in working with cryptography to reduce the risk of side-channel information leakage.

public ref class CryptographicOperations abstract sealed
public static class CryptographicOperations
type CryptographicOperations = class
Public Class CryptographicOperations
Inheritance
CryptographicOperations

Methods

FixedTimeEquals(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Determines the equality of two byte sequences in an amount of time that depends on the length of the sequences, but not their values.

HashData(HashAlgorithmName, Byte[])
HashData(HashAlgorithmName, ReadOnlySpan<Byte>)
HashData(HashAlgorithmName, ReadOnlySpan<Byte>, Span<Byte>)
HashData(HashAlgorithmName, Stream)
HashData(HashAlgorithmName, Stream, Span<Byte>)
HashDataAsync(HashAlgorithmName, Stream, CancellationToken)
HashDataAsync(HashAlgorithmName, Stream, Memory<Byte>, CancellationToken)
HmacData(HashAlgorithmName, Byte[], Byte[])
HmacData(HashAlgorithmName, Byte[], Stream)
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream)
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream, Span<Byte>)
HmacDataAsync(HashAlgorithmName, Byte[], Stream, CancellationToken)
HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<Byte>, Stream, CancellationToken)
HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<Byte>, Stream, Memory<Byte>, CancellationToken)
TryHashData(HashAlgorithmName, ReadOnlySpan<Byte>, Span<Byte>, Int32)
TryHmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Int32)
ZeroMemory(Span<Byte>)

Fills the provided buffer with zeros.

Applies to