This seems magical.  Please add a comment about where it came from, ideally with links to openssl documentation.