File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
crates/bitwarden-wasm-internal/src Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,15 @@ impl ClientCrypto {
34
34
Ok ( self . 0 . crypto ( ) . initialize_org_crypto ( req) . await ?)
35
35
}
36
36
37
+ /// Generates a new key pair and encrypts the private key with the initialized user key.
38
+ /// Needs to be called after `initialize_user_crypto`.
37
39
pub fn make_key_pair ( & self ) -> Result < MakeKeyPairResponse > {
38
40
Ok ( self . 0 . crypto ( ) . make_key_pair ( ) ?)
39
41
}
40
42
43
+ /// Verifies a user's asymmetric keys by decrypting the private key with the initialized user
44
+ /// key. Returns if the private key is decryptable and if it is a valid matching key.
45
+ /// Needs to be called after `initialize_user_crypto`.
41
46
pub fn verify_asymmetric_keys (
42
47
& self ,
43
48
request : VerifyAsymmetricKeysRequest ,
You can’t perform that action at this time.
0 commit comments