Skip to content

Conversation

@lobsterjerusalem
Copy link
Collaborator

Adds some basic structs and helper functions for ikev2. Not an entire proto, but a foundation.

@lobsterjerusalem lobsterjerusalem self-assigned this Oct 30, 2025
@lobsterjerusalem lobsterjerusalem added the enhancement New feature or request label Oct 30, 2025
@j-baines j-baines requested a review from Copilot October 30, 2025 16:28
Copy link

Copilot AI left a 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.

Copy link
Collaborator

@terrorbyte terrorbyte left a 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.

Copy link
Collaborator

@terrorbyte terrorbyte left a 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.

@terrorbyte terrorbyte merged commit f7a52e1 into main Oct 30, 2025
7 checks passed
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