-
Notifications
You must be signed in to change notification settings - Fork 42
IKEv2 Proto Init #468
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
IKEv2 Proto Init #468
Conversation
… Also added an Active param to the Session struct and changed the logic to RemoveSession(s) functions to set this value to false instead of deleting it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces the foundational IKEv2 protocol implementation with basic structs and helper functions. The implementation provides the groundwork for IKEv2-related exploits rather than a complete protocol implementation.
- Adds comprehensive IKEv2 constants and type definitions for payloads, exchanges, transforms, and algorithms
- Implements packet packing functions for various IKEv2 payload types
- Provides basic cryptographic operations and connection management for IKEv2 clients
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| protocol/ikev2/types.go | Defines IKEv2 constants, enums, and core data structures for clients, crypto operations, proposals, and transforms |
| protocol/ikev2/packs.go | Implements packet packing functions for IKEv2 payloads including nonce, vendor ID, notify, key exchange, and security association |
| protocol/ikev2/ikev2_test.go | Contains unit tests for vendor ID, security association, and notify packet packing functions |
| protocol/ikev2/ikev2.go | Provides utility functions, Diffie-Hellman key generation, crypto initialization, and UDP connection management |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
terrorbyte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think the biggest ask is the type change.
terrorbyte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just give the doc comments one more look for me.
Adds some basic structs and helper functions for ikev2. Not an entire proto, but a foundation.