wip, ASAP fix needed

This commit is contained in:
Dmitry Zuikov 2024-08-24 09:02:32 +03:00
parent 61aac90086
commit 3638f45fb8
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ decryptBlock :: (MonadUnliftIO m, Serialise t)
-> SmallEncryptedBlock t
-> m t
decryptBlock sto seb = do
let find gk = runKeymanClient (extractGroupKeySecret gk)
let find gk = runKeymanClientRO (findMatchedGroupKeySecret sto gk)
-- FIXME: improve-error-diagnostics
runExceptT (Symm.decryptBlock sto find seb)

View File

@ -284,6 +284,7 @@ getStateFromRefChan rchan = do
let krs = HM.fromList [ (pk,e) | e@(KeyringEntry pk _ _) <- krl ]
-- FIXME: asap-insert-findMatchedGroupKey
let findKey gk = do
r <- S.toList_ do
forM_ (HM.toList $ recipients gk) $ \(pk,box) -> runMaybeT do