File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55// </summary>
66public enum SignatureAlgorithm : byte
77{
8- Ed25519 = 0
8+ Ed25519 = 0 ,
9+ MlDsa44 = 1 ,
910}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Bit.Core.KeyManagement.Models.Api.Request;
66
77public class SecurityStateModel
88{
9- [ StringLength ( 1000 ) ]
9+ [ StringLength ( 10000 ) ]
1010 [ JsonPropertyName ( "securityState" ) ]
1111 public required string SecurityState { get ; set ; }
1212 [ JsonPropertyName ( "securityVersion" ) ]
Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ public class SignatureKeyPairRequestModel
1111
1212 public SignatureKeyPairData ToSignatureKeyPairData ( )
1313 {
14- if ( SignatureAlgorithm != "ed25519" )
14+ if ( SignatureAlgorithm != "ed25519" && SignatureAlgorithm != "mldsa44" )
1515 {
1616 throw new ArgumentException (
1717 $ "Unsupported signature algorithm: { SignatureAlgorithm } "
1818 ) ;
1919 }
20- var algorithm = Core . KeyManagement . Enums . SignatureAlgorithm . Ed25519 ;
20+ var algorithm = SignatureAlgorithm == "ed25519"
21+ ? Core . KeyManagement . Enums . SignatureAlgorithm . Ed25519
22+ : Core . KeyManagement . Enums . SignatureAlgorithm . MlDsa44 ;
2123
2224 return new SignatureKeyPairData (
2325 algorithm ,
You can’t perform that action at this time.
0 commit comments