Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Just asking] Is the SymmetricKeyAlgorithm.Plaintext not supported when unprotecting the private key? #392

Open
ghost opened this issue Mar 18, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 18, 2022

I found that when the SymmetricKeyAlgorithm is plaintext, it will not derive the session key with the passphrase, and will raise a 'NotImplementedError'.

Here's the pgpdump result:

$ pgpdump keyfile
Old: Secret Key Packet(tag 5)(533 bytes)
	Ver 4 - new
	Public key creation time - xxxx
	Pub alg - RSA Encrypt or Sign(pub 1)
	RSA n(4096 bits) - ...
	RSA e(17 bits) - ...
	Sym alg - Plaintext or unencrypted data(sym 0)
	GnuPG gnu-dummy (s2k 1001)

...

It seems the plaintext is not supported, right? I wonder why. Whether it will support it in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants