hOpenPGP 3.0.1.1 → 3.0.2
raw patch · 3 files changed
+17/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Codec.Encryption.OpenPGP.Signatures: signDataWithEd25519Legacy :: SigType -> SecretKey -> [SigSubPacket] -> [SigSubPacket] -> ByteString -> Either SignError SignaturePayload
Files
- Codec/Encryption/OpenPGP/Signatures.hs +14/−3
- Codec/Encryption/OpenPGP/Types/Internal/Base.hs +1/−0
- hOpenPGP.cabal +2/−2
Codec/Encryption/OpenPGP/Signatures.hs view
@@ -33,6 +33,7 @@ , signUserIDwithRSA , crossSignSubkeyWithRSA , signDataWithEd25519+ , signDataWithEd25519Legacy , signDataWithEd25519V6 , signDataWithEd448 , signDataWithEd448V6@@ -1531,10 +1532,10 @@ signDataWithRSAV6 st salt prv has uhas payload = signRSAV6Core CleartextCompat st SHA512 salt has uhas prv payload -ed25519Params :: (String, Int, Int, PubKeyAlgorithm)+-- FIXME: clean this up+ed25519Params, ed25519LegacyParams, ed448Params :: (String, Int, Int, PubKeyAlgorithm) ed25519Params = ("Ed25519", 64, 32, PKA.Ed25519)--ed448Params :: (String, Int, Int, PubKeyAlgorithm)+ed25519LegacyParams = ("Ed25519Legacy", 64, 32, PKA.EdDSA) ed448Params = ("Ed448", 114, 57, PKA.Ed448) signDataWithEdDSAV4Generic ::@@ -1573,6 +1574,16 @@ -> Either SignError SignaturePayload signDataWithEd25519 st sk has uhas payload = signDataWithEdDSAV4Generic ed25519Params (ed25519Signer sk) CleartextCompat SHA512 st has uhas payload++signDataWithEd25519Legacy ::+ SigType+ -> Ed25519.SecretKey+ -> [SigSubPacket]+ -> [SigSubPacket]+ -> ByteString+ -> Either SignError SignaturePayload+signDataWithEd25519Legacy st sk has uhas payload =+ signDataWithEdDSAV4Generic ed25519LegacyParams (ed25519Signer sk) CleartextCompat SHA512 st has uhas payload signDataWithEd25519V6 :: SigType
Codec/Encryption/OpenPGP/Types/Internal/Base.hs view
@@ -486,6 +486,7 @@ instance Pretty Fingerprint where pretty = pretty . bsToHexUpper . unFingerprint +-- FIXME: we should not be exporting this key :: String -> AK.Key key = AK.fromText . T.pack
hOpenPGP.cabal view
@@ -1,6 +1,6 @@ Cabal-version: 3.4 Name: hOpenPGP-Version: 3.0.1.1+Version: 3.0.2 Synopsis: native Haskell implementation of OpenPGP (RFC9580) Description: native Haskell implementation of OpenPGP (RFC9580), with some backwards compatibility Homepage: https://salsa.debian.org/clint/hOpenPGP@@ -332,4 +332,4 @@ source-repository this type: git location: https://salsa.debian.org/clint/hOpenPGP.git- tag: v3.0.1.1+ tag: v3.0.2