2021-07-07 14:21:36 +02:00
|
|
|
#include "sha256.h"
|
|
|
|
|
|
|
|
SHA256::SHA256() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
SHA256::~SHA256() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-01-09 15:29:03 +01:00
|
|
|
Ref<SHA256> SHA256::get() {
|
2021-07-07 14:21:36 +02:00
|
|
|
if (_sha_256_creation_func == nullptr) {
|
|
|
|
printf("Error: static SHA256 *get(): creation_func == nullptr\n");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
return _sha_256_creation_func();
|
|
|
|
}
|
|
|
|
|
2022-01-09 15:29:03 +01:00
|
|
|
Ref<SHA256> (*SHA256::_sha_256_creation_func)(void) = nullptr;
|