PHP FFI Bindings to OpenSSL
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
eater eeece17518
continuous-integration/drone/push Build is passing Details
make CI happy
5 years ago
resources whoo 5 years ago
src make CI happy 5 years ago
tests whoo 5 years ago
.drone.yml fix drone 5 years ago
.gitignore run php-cs-fixer and add TYPE constant 5 years ago
README.md Initial commit 5 years ago
composer.json whoo 5 years ago
composer.lock run php-cs-fixer and add TYPE constant 5 years ago
phpstan.neon configure php stan 5 years ago
phpunit.xml Initial commit 5 years ago

README.md

COpenSSL

Build Status

An effort to make OpenSSL more accessible in PHP via FFI bindings.

⚠ WARNING: If you just need a solution to encrypt and sign stuff please look at libsodium, COpenSSL is only meant to be used for in-depth crypto routines.


Install

composer install cijber/copenssl

Details

Currently this library is implemented as needed. on the current roadmap is PKCS#7 support.

BIO is almost fully implemented

Headers

resources contain the headers used for FFI, these are all concatenated into one string and then loaded in Cijber\OpenSSL\Instance.

resources/gen contains template.h and full.h, full.h is a fully pre-processed header generated from template.h by running gcc -E template.h > full.h, this file helps with creating the headers needed for FFI