Skip to content

Encoding and Encrypting for Elgamal pub-key and AES sym. key#3

Merged
paveltyk merged 12 commits intoDivvyPayHQ:mainfrom
paveltyk:encrypt-with-elgamal-and-aes
Feb 7, 2025
Merged

Encoding and Encrypting for Elgamal pub-key and AES sym. key#3
paveltyk merged 12 commits intoDivvyPayHQ:mainfrom
paveltyk:encrypt-with-elgamal-and-aes

Conversation

@paveltyk
Copy link
Contributor

@paveltyk paveltyk commented Jan 30, 2025

This PR allows encoding and encrypting of:

v0.6.0

Enhancements

  • Introduced OpenPGP.Encode protocol with .encode/1,2 and .tag/1.
  • Add OpenPGP.Encode protocol implementation for:
    • OpenPGP.PublicKeyEncryptedSessionKeyPacket
    • OpenPGP.IntegrityProtectedDataPacket
    • OpenPGP.LiteralDataPacket
    • OpenPGP.Packet
    • OpenPGP.Packet.PacketTag
    • OpenPGP.Packet.BodyChunk
  • Introduced OpenPGP.Encrypt protocol with .encrypt/1,2.
  • Add OpenPGP.Encrypt protocol implementation for:
    • OpenPGP.PublicKeyEncryptedSessionKeyPacket with Elgamal (Public-Key algo 16).
    • OpenPGP.IntegrityProtectedDataPacket with AES-128, AES-192, AES-256 (Sym.algo 7,8,9).
  • Added OpenPGP.encode_packet/1 that delegate to OpenPGP.Encode protocol.
  • Added OpenPGP.encrypt_packet/1 that delegate to OpenPGP.Encrypt protocol.
  • Add ElGamal algorithm support to OpenPGP.PublicKeyPacket.decode/1.
  • Introduced OpenPGP.ModificationDetectionCodePacket.
  • Introduced OpenPGP.Util.PKCS1 with PKCS#1 block encoding EME-PKCS1-v1_5.
  • Refactored OpenPGP.Util.encode_mpi/1 and added exception for too long big-endian numbers (>65535 octets).

@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch from 4266908 to ffb51a3 Compare January 30, 2025 19:53
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch from d53657d to 8cfc665 Compare January 30, 2025 21:30
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch 2 times, most recently from 56c2612 to f3c8230 Compare February 4, 2025 02:36
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch from f3c8230 to 3c254ef Compare February 4, 2025 02:40
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch 12 times, most recently from 05dce31 to b8be604 Compare February 6, 2025 01:20
@paveltyk paveltyk added the enhancement New feature or request label Feb 6, 2025
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch from b8be604 to bdf944a Compare February 6, 2025 17:11
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch from a05d394 to bdf944a Compare February 6, 2025 17:19
Copy link

@lytedev lytedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few changes that would be nice to have, but also happy to defer to a point release.

@paveltyk paveltyk requested a review from lytedev February 6, 2025 18:55
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch 5 times, most recently from 2363501 to 8119b57 Compare February 7, 2025 05:33
@paveltyk paveltyk force-pushed the encrypt-with-elgamal-and-aes branch from 8119b57 to e35e1f1 Compare February 7, 2025 05:46
@paveltyk paveltyk merged commit dd526d5 into DivvyPayHQ:main Feb 7, 2025
4 checks passed
@paveltyk paveltyk deleted the encrypt-with-elgamal-and-aes branch February 7, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants