File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
crates/bitwarden-core/src/key_management Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -606,9 +606,12 @@ pub fn make_user_signing_keys_for_enrollment(
606
606
607
607
// Make new keypair and sign the public key with it
608
608
let signature_keypair = SigningKey :: make ( SignatureAlgorithm :: Ed25519 ) ;
609
+ let temporary_signature_keypair_id = SigningKeyId :: Local ( "temporary_key_for_rotation" ) ;
610
+ #[ allow( deprecated) ]
611
+ ctx. set_signing_key ( temporary_signature_keypair_id, signature_keypair. clone ( ) ) ?;
609
612
let signed_public_key = ctx. make_signed_public_key (
610
613
AsymmetricKeyId :: UserPrivateKey ,
611
- SigningKeyId :: UserSigningKey ,
614
+ temporary_signature_keypair_id ,
612
615
) ?;
613
616
614
617
// Make signed security state
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ key_ids! {
34
34
#[ signing]
35
35
pub enum SigningKeyId {
36
36
UserSigningKey ,
37
+ #[ local]
38
+ Local ( & ' static str ) ,
37
39
}
38
40
39
41
pub KeyIds => SymmetricKeyId , AsymmetricKeyId , SigningKeyId ;
You can’t perform that action at this time.
0 commit comments