Download the PHP package tourze/quic-crypto without Composer
On this page you can find all versions of the php package tourze/quic-crypto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package quic-crypto
QUIC Crypto Library
中文
A comprehensive QUIC protocol cryptographic library providing AEAD encryption, header protection, key derivation, and other core security features.
Table of Contents
- Features
- Installation
- Requirements
- Quick Start
- Basic Usage
- AEAD Encryption
- Key Derivation
- Header Protection
- Crypto Suite Management
- Key Manager
- Secure Random
- API Documentation
- Exception Handling
- Supported Algorithms
- Security Considerations
- Testing
- Contributing
- References
- License
Features
- AEAD Encryption: Support for AES-128-GCM, AES-256-GCM, ChaCha20-Poly1305
- Header Protection: QUIC packet header protection implementation
- Key Derivation: HKDF-based key derivation following RFC 5869
- Key Management: Complete QUIC key lifecycle management
- Crypto Suites: Standard QUIC cipher suite management and selection
- Secure Random: Cryptographically secure random number generation
- RFC Compliance: Strict adherence to RFC 9001 (QUIC-TLS) and related standards
Installation
Requirements
- PHP 8.1 or higher
- OpenSSL extension (required)
- Sodium extension (optional, for enhanced security)
- Hash extension (required)
Quick Start
Get started with the QUIC Crypto Library in minutes:
Basic Usage
AEAD Encryption
Key Derivation
Header Protection
Crypto Suite Management
Key Manager
Secure Random
API Documentation
Exception Handling
All methods may throw CryptoException:
Supported Algorithms
- AEAD: AES-128-GCM, AES-256-GCM, ChaCha20-Poly1305
- Hash: SHA-256, SHA-384, SHA-512
- Cipher Suites: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256
Security Considerations
- Key Management: Clear sensitive keys immediately after use
- Random Numbers: Use cryptographically secure random number generators
- Timing Attacks: Timing-safe string comparison functions are provided
- Memory Safety: Automatic cleanup of sensitive data in memory
- Constant-Time Operations: Critical operations are designed to be constant-time
Testing
Run the test suite:
Contributing
We welcome contributions! Please follow these guidelines:
- Issues: Report bugs or feature requests via GitHub Issues
-
Pull Requests:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Code Style: Follow PSR-12 coding standards
- Testing: Ensure all tests pass and add tests for new features
- Documentation: Update documentation for any API changes
References
- RFC 9001: Using TLS to Secure QUIC
- RFC 5869: HMAC-based Extract-and-Expand Key Derivation Function (HKDF)
- RFC 8439: ChaCha20 and Poly1305 for IETF Protocols
- RFC 5116: An Interface and Algorithms for Authenticated Encryption
License
The MIT License (MIT). Please see License File for more information.
All versions of quic-crypto with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-hash Version *
ext-openssl Version *
ext-sodium Version *
tourze/quic-core Version 0.0.*
ext-hash Version *
ext-openssl Version *
ext-sodium Version *
tourze/quic-core Version 0.0.*
The package tourze/quic-crypto contains the following files
Loading the files please wait ...