Now SHA256 also from Reference.

This commit is contained in:
Relintai 2021-08-22 21:06:47 +02:00
parent 4c8920777f
commit d2cff831bd

View File

@ -3,7 +3,11 @@
#include <string>
class SHA256 {
#include "core/reference.h"
class SHA256 : public Reference {
RCPP_OBJECT(SHA256, Reference);
public:
virtual std::string compute(const void *data, size_t num_bytes) = 0;
virtual std::string compute(const std::string &text) = 0;