Skip to content

Commit 0fa110e

Browse files
committed
Avoid code duplication
1 parent 5a7747a commit 0fa110e

File tree

2 files changed

+2
-141
lines changed

2 files changed

+2
-141
lines changed

src/utility/SElementJWS.cpp

-126
This file was deleted.

src/utility/SElementJWS.h

+2-15
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,9 @@
1515
* INCLUDE
1616
******************************************************************************/
1717

18-
#include <Arduino_SecureElement.h>
18+
#include <Arduino_ECCX08.h>
1919

20-
/******************************************************************************
21-
* CLASS DECLARATION
22-
******************************************************************************/
23-
24-
class SElementJWS
25-
{
26-
public:
27-
28-
String publicKey(SecureElement & se, int slot, bool newPrivateKey = true);
29-
30-
String sign(SecureElement & se, int slot, const char* header, const char* payload);
31-
String sign(SecureElement & se, int slot, const String& header, const String& payload);
32-
33-
};
20+
using SElementJWS = ECCX08JWSClass;
3421

3522

3623
#endif /* SECURE_ELEMENT_JWS_H_ */

0 commit comments

Comments
 (0)