lift isCryptographicallySecure to Annex
Needed for VURL backend. Sponsored-by: Nicholas Golder-Manning on Patreon
This commit is contained in:
parent
55bf01b788
commit
e7b7ea78af
8 changed files with 15 additions and 14 deletions
|
@ -124,8 +124,8 @@ isStableKey k = maybe False (`B.isStableKey` k)
|
|||
<$> maybeLookupBackendVariety (fromKey keyVariety k)
|
||||
|
||||
isCryptographicallySecure :: Key -> Annex Bool
|
||||
isCryptographicallySecure k = maybe False isCryptographicallySecure'
|
||||
<$> maybeLookupBackendVariety (fromKey keyVariety k)
|
||||
isCryptographicallySecure k = maybe (pure False) isCryptographicallySecure'
|
||||
=<< maybeLookupBackendVariety (fromKey keyVariety k)
|
||||
|
||||
isCryptographicallySecure' :: Backend -> Bool
|
||||
isCryptographicallySecure' :: Backend -> Annex Bool
|
||||
isCryptographicallySecure' = B.isCryptographicallySecure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue