2023-11-27 00:43:01 +08:00
|
|
|
#ifndef SIGN_OSSL_H
|
|
|
|
#define SIGN_OSSL_H
|
|
|
|
|
2024-01-12 22:40:20 +08:00
|
|
|
#ifndef DISABLE_SIGNING
|
|
|
|
|
2023-11-27 00:43:01 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <openssl/pem.h>
|
|
|
|
#include <openssl/rsa.h>
|
|
|
|
#include <openssl/sha.h>
|
|
|
|
#include <openssl/err.h>
|
|
|
|
|
2023-11-27 05:51:41 +08:00
|
|
|
unsigned char *signWithRSA(unsigned char *inputData, size_t inputDataLength, unsigned char *key, size_t key_len, size_t *outputDataLength);
|
2023-11-27 00:43:01 +08:00
|
|
|
|
2024-01-12 22:40:20 +08:00
|
|
|
#endif
|
|
|
|
|
2023-11-27 00:43:01 +08:00
|
|
|
#endif // SIGN_OSSL_H
|
|
|
|
|
|
|
|
// 0xA422
|