openssl open and seal cleanup

refactored out some of the crypto++ preparation work