Show / Hide Table of Contents

IAesGcmPrimitives Interface

Namespace: Yubico.Core.Cryptography Assembly: Yubico.Core.dll

An interface exposing AES-GCM primitive operations.

C#
public interface IAesGcmPrimitives

Methods

Name Description
DecryptAndVerify(ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, Span<byte>, ReadOnlySpan<byte>)

Decrypt the ciphertext using AES-GCM with the given keyData, nonce, and associatedData. Verify the authentication tag in the tag Span. Place the resulting decrypted data into the plaintext Span. Return the result of the authentication verification.

EncryptAndAuthenticate(ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, Span<byte>, Span<byte>, ReadOnlySpan<byte>)

Encrypt the plaintext using AES-GCM with the given keyData, nonce, and associatedData. Place the resulting encrypted data into the ciphertext Span and the authentication tag into the tag Span.

In this article
Back to top Generated by DocFX