PHP FFI Bindings to OpenSSL
Find a file
eater fb1ec4e059
All checks were successful
continuous-integration/drone/push Build is passing
fix license field
2019-11-25 01:15:48 +01:00
resources Initial commit 2019-11-25 00:45:19 +01:00
src configure php stan 2019-11-25 01:10:51 +01:00
tests Initial commit 2019-11-25 00:45:19 +01:00
.drone.yml sign .drone.yml 2019-11-25 00:54:59 +01:00
.gitignore Initial commit 2019-11-25 00:45:19 +01:00
composer.json fix license field 2019-11-25 01:15:48 +01:00
composer.lock remove php-cs-fixer because it doesnt support PHP7.4 2019-11-25 00:53:55 +01:00
phpstan.neon configure php stan 2019-11-25 01:10:51 +01:00
phpunit.xml Initial commit 2019-11-25 00:45:19 +01:00
README.md Initial commit 2019-11-25 00:45:19 +01:00

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