Skip to content

Commit 40615ef

Browse files
committed
feat: add error property and list of errors to EncryptionData
1 parent eeb0ad7 commit 40615ef

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/Encryption/AesEncryption/Models/EncryptionData.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,19 @@ public class EncryptionData
1212
/// <summary>
1313
/// Gets or sets the data to be encrypted.
1414
/// </summary>
15-
public byte[] Data { get; set; }
15+
public string EncryptedData { get; set; }
1616

1717
/// <summary>
1818
/// Gets or sets the initialization vector (IV) used for encryption.
1919
/// </summary>
20-
public byte[] Iv { get; set; }
20+
public string Iv { get; set; }
21+
22+
/// <summary>
23+
/// Gets or sets the secret key used for encryption. Should be a base64 string
24+
/// </summary>
25+
public string SecretKey { get; set; }
26+
27+
public bool HasError { get; set; }
28+
public List<string> Errors { get; set; } = new List<string>();
2129
}
2230
}

0 commit comments

Comments
 (0)