({fingerprint, keyringId, currentPassword, password})
| 206 | } |
| 207 | |
| 208 | async setKeyPwd({fingerprint, keyringId, currentPassword, password}) { |
| 209 | const keyring = await keyringById(keyringId); |
| 210 | const privateKey = keyring.getPrivateKeyByFpr(fingerprint); |
| 211 | const unlockedKey = await unlockKey({key: privateKey, password: currentPassword}); |
| 212 | await keyring.setKeyPwd(unlockedKey, password); |
| 213 | await this.sendKeyUpdate(); |
| 214 | deletePwdCache(fingerprint); |
| 215 | } |
| 216 | |
| 217 | async validateKeyPassword({fingerprint, keyringId, password}) { |
| 218 | const cached = getKeyPwdFromCache(fingerprint); |
nothing calls this directly
no test coverage detected