using System.Runtime.InteropServices;
using ProtonVPN.OperatingSystems.WebAuthn.Interop.Marshalers;
namespace ProtonVPN.OperatingSystems.WebAuthn.Interop.Structs;
///
/// Contains the SALT values for the Hmac-Secret.
///
/// Corresponds to WEBAUTHN_HMAC_SECRET_SALT.
[StructLayout(LayoutKind.Sequential)]
public class HmacSecretSaltOut
{
///
/// Size of _first.
///
private int _firstLength;
///
/// The first SALT value.
///
private ByteArrayOut _first;
///
/// Size of _second.
///
private int _secondLength;
///
/// The second SALT value.
///
private ByteArrayOut _second;
///
/// The first SALT value.
///
public byte[] First => _first?.Read(_firstLength);
///
/// The second SALT value.
///
public byte[] Second => _second?.Read(_secondLength);
private HmacSecretSaltOut() { }
}