Download the PHP package tourze/tls-handshake-messages without Composer
On this page you can find all versions of the php package tourze/tls-handshake-messages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tls-handshake-messages
TLS Handshake Messages
δΈζ
A comprehensive PHP library for handling TLS handshake protocol messages. This package provides complete implementation of TLS handshake message structures with serialization, deserialization, and validation capabilities.
Table of Contents
- Features
- Installation
- Requirements
- Supported Message Types
- Quick Start
- Creating a ClientHello Message
- Working with Certificates
- Message Validation
- Version Compatibility
- Architecture
- Message Interface
- Message Types
- Exception Handling
- Testing
- Development
- Code Quality
- Contributing
- License
- Security
- Related Packages
Features
- π Complete TLS Message Support: Implements all major TLS handshake message types
- π¦ Serialization/Deserialization: Efficient binary data encoding and decoding
- β Message Validation: Built-in integrity and format validation
- π Version Compatibility: Support for multiple TLS versions with compatibility handling
- π§ͺ Well Tested: Comprehensive test suite with 100+ test cases
- π High Performance: Optimized for production use
Installation
Requirements
- PHP 8.1 or higher
- tourze/enum-extra: ^0.1
- tourze/tls-common: ^0.0
Supported Message Types
- ClientHello: Client handshake initialization
- ServerHello: Server handshake response
- Certificate: Certificate chain messages
- CertificateRequest: Certificate request from server
- CertificateVerify: Certificate verification messages
- ClientKeyExchange: Client key exchange messages
- ServerKeyExchange: Server key exchange messages
- Finished: Handshake completion messages
- NewSessionTicket: Session ticket messages
- EncryptedExtensions: TLS 1.3 encrypted extensions
- HelloRequest: Server hello request messages
- ServerHelloDone: Server hello done messages
Quick Start
Creating a ClientHello Message
Working with Certificates
Message Validation
Version Compatibility
Architecture
Message Interface
All messages implement HandshakeMessageInterface which provides:
getType(): Get message typeencode(): Serialize to binarydecode(): Deserialize from binarygetLength(): Get message lengthisValid(): Validate message format
Message Types
Message types are defined in HandshakeMessageType enum:
Exception Handling
The package uses InvalidMessageException for handling malformed messages:
Testing
Run the test suite:
Development
Code Quality
Contributing
- Fork the repository
- Create a feature branch
- Write tests for new functionality
- Ensure all tests pass
- Submit a pull request
License
MIT License. See LICENSE file for details.
Security
This package is designed for defensive security applications. If you discover any security issues, please report them responsibly.
Related Packages
- tourze/tls-common - Common TLS utilities
- tourze/enum-extra - Enhanced enum functionality