Skip to content

Commit 5f30f78

Browse files
committed
Store PRF secrets
1 parent a565fd9 commit 5f30f78

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Api/Vault/Models/CipherFido2CredentialModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public CipherFido2CredentialModel(CipherLoginFido2CredentialData data)
2525
UserDisplayName = data.UserDisplayName;
2626
Counter = data.Counter;
2727
Discoverable = data.Discoverable;
28+
HmacSecret = data.HmacSecret;
2829
CreationDate = data.CreationDate;
2930
}
3031

@@ -64,6 +65,9 @@ public CipherFido2CredentialModel(CipherLoginFido2CredentialData data)
6465
[EncryptedString]
6566
[EncryptedStringLength(1000)]
6667
public string Discoverable { get; set; }
68+
[EncryptedString]
69+
[EncryptedStringLength(1000)]
70+
public string HmacSecret { get; set; }
6771
[Required]
6872
public DateTime CreationDate { get; set; }
6973

@@ -83,6 +87,7 @@ public CipherLoginFido2CredentialData ToCipherLoginFido2CredentialData()
8387
UserDisplayName = UserDisplayName,
8488
Counter = Counter,
8589
Discoverable = Discoverable,
90+
HmacSecret = HmacSecret,
8691
CreationDate = CreationDate
8792
};
8893
}

src/Core/Vault/Models/Data/CipherLoginFido2CredentialData.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ public CipherLoginFido2CredentialData() { }
1919
public string UserDisplayName { get; set; }
2020
public string Counter { get; set; }
2121
public string Discoverable { get; set; }
22+
public string HmacSecret { get; set; }
2223
public DateTime CreationDate { get; set; }
2324
}

0 commit comments

Comments
 (0)