Skip to content

Commit 3aa9a00

Browse files
committed
add BaseAesData model
1 parent 7c582c2 commit 3aa9a00

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/SafeCrypt.Lib/Encryption/AesEncryption/Models/BaseAesEncryptionParameters.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.ComponentModel.DataAnnotations;
1+
using System.Collections.Generic;
2+
using System.ComponentModel.DataAnnotations;
23

34
namespace SafeCrypt.Models
45
{
@@ -22,4 +23,21 @@ public class BaseAesEncryptionParameters
2223
[Required]
2324
public string IV { get; set; }
2425
}
26+
27+
public class BaseAesData
28+
{
29+
/// <summary>
30+
/// Gets or sets the initialization vector (IV) used for encryption.
31+
/// </summary>
32+
public string Iv { get; set; }
33+
34+
/// <summary>
35+
/// Gets or sets the secret key used for encryption. Should be a base64 string
36+
/// </summary>
37+
public string SecretKey { get; set; }
38+
39+
public bool HasError { get; set; }
40+
41+
public List<string> Errors { get; set; } = new List<string>();
42+
}
2543
}

0 commit comments

Comments
 (0)