mirror of
https://github.com/bitwarden/server
synced 2025-12-23 19:53:40 +00:00
* Add ssh key item type * Add fingerprint * Limit ssh key ciphers to new clients * Fix enc string length for 4096 bit rsa keys * Remove keyAlgorithm from ssh cipher * Add featureflag and exclude mobile from sync * Add ssh-agent flag
27 lines
653 B
C#
27 lines
653 B
C#
using Bit.Core.Utilities;
|
|
using Bit.Core.Vault.Models.Data;
|
|
|
|
namespace Bit.Api.Vault.Models;
|
|
|
|
public class CipherSSHKeyModel
|
|
{
|
|
public CipherSSHKeyModel() { }
|
|
|
|
public CipherSSHKeyModel(CipherSSHKeyData data)
|
|
{
|
|
PrivateKey = data.PrivateKey;
|
|
PublicKey = data.PublicKey;
|
|
KeyFingerprint = data.KeyFingerprint;
|
|
}
|
|
|
|
[EncryptedString]
|
|
[EncryptedStringLength(5000)]
|
|
public string PrivateKey { get; set; }
|
|
[EncryptedString]
|
|
[EncryptedStringLength(5000)]
|
|
public string PublicKey { get; set; }
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string KeyFingerprint { get; set; }
|
|
}
|