Skip to content

Commit

Permalink
crypto: pk sign with new function from PR838
Browse files Browse the repository at this point in the history
The function  pkey_verify_nif handles pk signing with a general approach that is enabled by EVP api in OpenSSL 1.0.0
The rejected PR838 introduced that function and lots of other stuff so far neglected. It also made some different rsa padding methods possible (included).

Since the crypto code base has changed significantly, it was an overhelming work to try a git merge.  Therefore this commit is a manual move of the source code from the PR into current maint.

This commit concentrates to use the new function compatible with the old functions. This includes some #if:s for different versions, compatibility code for 0.9.8.

Lacking:  test cases, exporting the more general erlang api, documentation...
  • Loading branch information
HansN committed Jul 7, 2017
1 parent d7dee75 commit 03f3ec4
Show file tree
Hide file tree
Showing 2 changed files with 416 additions and 254 deletions.

0 comments on commit 03f3ec4

Please sign in to comment.