| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Encryption.OpenPGP.SecretKey
Synopsis
- decryptPrivateKey :: (SomePKPayload, SKAddendum) -> Passphrase -> Either String SKAddendum
- mkUnencryptedSKAddendum :: SomePKPayload -> SKey -> Either String SKAddendum
- encryptPrivateKeyWithPolicyAndSaltAndIV :: OpenPGPPolicy -> SomePKPayload -> Salt -> IV -> SKAddendum -> Passphrase -> Either String SKAddendum
- reencryptPrivateKeyTyped :: forall (v :: KeyVersion). SomePKPayload -> SKAddendumV v -> Salt -> IV -> SKey -> Passphrase -> Either String (SKAddendumV v)
- reencryptPrivateKeyTypedWithPolicy :: forall (v :: KeyVersion). OpenPGPPolicy -> SomePKPayload -> SKAddendumV v -> Salt -> IV -> SKey -> Passphrase -> Either String (SKAddendumV v)
- reencryptPrivateKeyWithSaltAndIV :: SomePKPayload -> SKAddendum -> Salt -> IV -> SKey -> Passphrase -> Either String SKAddendum
- data SecretKeyError
- renderSecretKeyError :: SecretKeyError -> String
- data SecretKeyEncryptOptions = SecretKeyEncryptOptions {}
- decryptSecretKey :: SecretKey -> Passphrase -> Either SecretKeyError SKey
- decryptSecretKeyAddendum :: SomePKPayload -> SKAddendum -> Passphrase -> Either SecretKeyError (SKey, SKAddendum)
- encryptSecretKey :: MonadRandom m => SomePKPayload -> SKey -> Passphrase -> SecretKeyEncryptOptions -> m (Either SecretKeyError SKAddendum)
- encryptSecretKeyWithPolicy :: MonadRandom m => OpenPGPPolicy -> SomePKPayload -> SKey -> Passphrase -> m (Either SecretKeyError SKAddendum)
- reencryptSecretKey :: MonadRandom m => SecretKey -> Passphrase -> Passphrase -> SecretKeyEncryptOptions -> m (Either SecretKeyError SecretKey)
- reencryptSecretKeyRandom :: MonadRandom m => SecretKey -> Passphrase -> Passphrase -> OpenPGPPolicy -> m (Either SecretKeyError SecretKey)
Documentation
decryptPrivateKey :: (SomePKPayload, SKAddendum) -> Passphrase -> Either String SKAddendum Source #
Deprecated: Use decryptSecretKeyAddendum
encryptPrivateKeyWithPolicyAndSaltAndIV :: OpenPGPPolicy -> SomePKPayload -> Salt -> IV -> SKAddendum -> Passphrase -> Either String SKAddendum Source #
Deprecated: Use encryptSecretKeyWithPolicy
reencryptPrivateKeyTyped :: forall (v :: KeyVersion). SomePKPayload -> SKAddendumV v -> Salt -> IV -> SKey -> Passphrase -> Either String (SKAddendumV v) Source #
Deprecated: Use reencryptSecretKey
reencryptPrivateKeyTypedWithPolicy :: forall (v :: KeyVersion). OpenPGPPolicy -> SomePKPayload -> SKAddendumV v -> Salt -> IV -> SKey -> Passphrase -> Either String (SKAddendumV v) Source #
Deprecated: Use reencryptSecretKey
reencryptPrivateKeyWithSaltAndIV :: SomePKPayload -> SKAddendum -> Salt -> IV -> SKey -> Passphrase -> Either String SKAddendum Source #
Deprecated: Use reencryptSecretKey
data SecretKeyError Source #
Constructors
| SecretKeyDecryptError String | |
| SecretKeyEncryptError String | |
| SecretKeyPolicyError String | |
| SecretKeyUnsupportedLegacyProtection |
Instances
| Show SecretKeyError Source # | |
Defined in Codec.Encryption.OpenPGP.SecretKey | |
| Eq SecretKeyError Source # | |
Defined in Codec.Encryption.OpenPGP.SecretKey Methods (==) :: SecretKeyError -> SecretKeyError -> Bool Source # (/=) :: SecretKeyError -> SecretKeyError -> Bool Source # | |
data SecretKeyEncryptOptions Source #
Constructors
| SecretKeyEncryptOptions | |
Fields
| |
decryptSecretKeyAddendum :: SomePKPayload -> SKAddendum -> Passphrase -> Either SecretKeyError (SKey, SKAddendum) Source #
encryptSecretKey :: MonadRandom m => SomePKPayload -> SKey -> Passphrase -> SecretKeyEncryptOptions -> m (Either SecretKeyError SKAddendum) Source #
encryptSecretKeyWithPolicy :: MonadRandom m => OpenPGPPolicy -> SomePKPayload -> SKey -> Passphrase -> m (Either SecretKeyError SKAddendum) Source #
reencryptSecretKey :: MonadRandom m => SecretKey -> Passphrase -> Passphrase -> SecretKeyEncryptOptions -> m (Either SecretKeyError SecretKey) Source #
reencryptSecretKeyRandom :: MonadRandom m => SecretKey -> Passphrase -> Passphrase -> OpenPGPPolicy -> m (Either SecretKeyError SecretKey) Source #