mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-11 13:54:16 -04:00
Add FreeRTOS-Plus directory with new directory structure so it matches the FreeRTOS directory.
This commit is contained in:
parent
80f7e8cdd4
commit
64a3ab321a
528 changed files with 228252 additions and 0 deletions
53
FreeRTOS-Plus/Source/CyaSSL/cyassl/openssl/dsa.h
Normal file
53
FreeRTOS-Plus/Source/CyaSSL/cyassl/openssl/dsa.h
Normal file
|
@ -0,0 +1,53 @@
|
|||
/* dsa.h for openSSL */
|
||||
|
||||
|
||||
#ifndef CYASSL_DSA_H_
|
||||
#define CYASSL_DSA_H_
|
||||
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
#include <cyassl/openssl/bn.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
struct CYASSL_DSA {
|
||||
CYASSL_BIGNUM* p;
|
||||
CYASSL_BIGNUM* q;
|
||||
CYASSL_BIGNUM* g;
|
||||
CYASSL_BIGNUM* pub_key; /* our y */
|
||||
CYASSL_BIGNUM* priv_key; /* our x */
|
||||
void* internal; /* our Dsa Key */
|
||||
char inSet; /* internal set from external ? */
|
||||
char exSet; /* external set from internal ? */
|
||||
};
|
||||
|
||||
|
||||
CYASSL_API CYASSL_DSA* CyaSSL_DSA_new(void);
|
||||
CYASSL_API void CyaSSL_DSA_free(CYASSL_DSA*);
|
||||
|
||||
CYASSL_API int CyaSSL_DSA_generate_key(CYASSL_DSA*);
|
||||
CYASSL_API int CyaSSL_DSA_generate_parameters_ex(CYASSL_DSA*, int bits,
|
||||
unsigned char* seed, int seedLen, int* counterRet,
|
||||
unsigned long* hRet, void* cb);
|
||||
|
||||
CYASSL_API int CyaSSL_DSA_LoadDer(CYASSL_DSA*, const unsigned char*, int sz);
|
||||
CYASSL_API int CyaSSL_DSA_do_sign(const unsigned char* d, unsigned char* sigRet,
|
||||
CYASSL_DSA* dsa);
|
||||
|
||||
#define DSA_new CyaSSL_DSA_new
|
||||
#define DSA_free CyaSSL_DSA_free
|
||||
|
||||
#define DSA_generate_key CyaSSL_DSA_generate_key
|
||||
#define DSA_generate_parameters_ex CyaSSL_DSA_generate_parameters_ex
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* header */
|
Loading…
Add table
Add a link
Reference in a new issue