Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: refactor crypto_openssl to allow new digests
Refactor the code on crypto_openssl so that we can add another digest that is not openssl-based. This mostly adds another level of indirection by moving digest update and finalize into class scope and making Digest a base-class with no ties to OpenSSL. TL;DR use virtual dispatch so we can call something that is not OpenSSL
- Loading branch information
Showing
4 changed files
with
114 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters