How to add openssl library into arducopter

how to add openssl into pixhawk firmware . i want to use my pixhawk for rsa key generation and would like to embedd the openssl library to do so. any suggestions or ideas is appreciated.