-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refact: Move custom CA functions into CCA module
- Loading branch information
1 parent
b23f770
commit e474447
Showing
4 changed files
with
48 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @file cca_public.h | ||
* @brief Types and prototypes to interact with the Custom CA module from public user-land. | ||
*/ | ||
|
||
#ifndef CCA_PUBLIC_H_ | ||
#define CCA_PUBLIC_H_ | ||
|
||
#ifdef HAVE_BOLOS_CUSTOMCA | ||
|
||
#include "bolos_target.h" | ||
#include "decorators.h" | ||
|
||
/* ----------------------------------------------------------------------- */ | ||
/* - CUSTOM CERTIFICATE AUTHORITY - */ | ||
/* ----------------------------------------------------------------------- */ | ||
|
||
// Verify the signature is issued from the custom certificate authority | ||
|
||
/** | ||
* @brief Verify hash signature with custom certificate authority | ||
* | ||
* @param hash Hash to be verified (32 bytes length). | ||
* @param sign Signature to be verified | ||
* @param sign_length Signature length | ||
* @return bool | ||
* @retval Verification OK | ||
* @retval Verification not OK | ||
* | ||
*/ | ||
SYSCALL unsigned int cca_verify_custom_ca(unsigned char *hash PLENGTH(32), | ||
unsigned char *sign PLENGTH(sign_length), | ||
unsigned int sign_length); | ||
|
||
#endif // HAVE_BOLOS_CUSTOMCA | ||
#endif // CCA_PUBLIC_H_ |
This file was deleted.
Oops, something went wrong.
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