Skip to content

Commit f5e1e7f

Browse files
committed
more rename
1 parent 5169aaa commit f5e1e7f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

examples/hash/hash.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ uint8_t input_data[] =
2222
0x65, 0xa2, 0x32, 0xd6, 0xbc, 0xd0, 0xf9, 0x39, 0xed, 0x1f, 0xe1, 0x28, 0xc1, 0x3b, 0x0e, 0x1b
2323
};
2424

25-
Adafruit_nRFCrypto_Hash hash;
25+
nRFCrypto_Hash hash;
2626

2727
// the setup function runs once when you press reset or power the board
2828
void setup()

src/Adafruit_nRFCrypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "rtos.h"
3030

3131
#include "nRFCrypto_Random.h"
32-
#include "Adafruit_nRFCrypto_Hash.h"
32+
#include "nRFCrypto_Hash.h"
3333
#include "ecc/nRFCrypto_ECC.h"
3434

3535
class Adafruit_nRFCrypto
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ static const uint8_t digest_len_arr[] =
4141

4242

4343
//------------- IMPLEMENTATION -------------//
44-
Adafruit_nRFCrypto_Hash::Adafruit_nRFCrypto_Hash(void)
44+
nRFCrypto_Hash::nRFCrypto_Hash(void)
4545
{
4646
_digest_len = 0;
4747
}
4848

49-
bool Adafruit_nRFCrypto_Hash::begin(CRYS_HASH_OperationMode_t mode)
49+
bool nRFCrypto_Hash::begin(CRYS_HASH_OperationMode_t mode)
5050
{
5151
nRFCrypto.enable();
5252

@@ -57,15 +57,15 @@ bool Adafruit_nRFCrypto_Hash::begin(CRYS_HASH_OperationMode_t mode)
5757
return true;
5858
}
5959

60-
bool Adafruit_nRFCrypto_Hash::update(uint8_t data[], size_t size)
60+
bool nRFCrypto_Hash::update(uint8_t data[], size_t size)
6161
{
6262
nRFCrypto.enable();
6363
VERIFY_ERROR( CRYS_HASH_Update(&_context, data, size), false );
6464
nRFCrypto.disable();
6565
return true;
6666
}
6767

68-
uint8_t Adafruit_nRFCrypto_Hash::end(uint32_t result[16])
68+
uint8_t nRFCrypto_Hash::end(uint32_t result[16])
6969
{
7070
nRFCrypto.enable();
7171
VERIFY_ERROR( CRYS_HASH_Finish(&_context, result), 0);
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
* THE SOFTWARE.
2323
*/
2424

25-
#ifndef ADAFRUIT_NRFCRYPTO_HASH_H_
26-
#define ADAFRUIT_NRFCRYPTO_HASH_H_
25+
#ifndef NRFCRYPTO_HASH_H_
26+
#define NRFCRYPTO_HASH_H_
2727

2828
#include "nrf_cc310/include/crys_hash.h"
2929

30-
class Adafruit_nRFCrypto_Hash
30+
class nRFCrypto_Hash
3131
{
3232
public:
33-
Adafruit_nRFCrypto_Hash(void);
33+
nRFCrypto_Hash(void);
3434

3535
bool begin(CRYS_HASH_OperationMode_t mode);
3636
bool begin(uint32_t mode)
@@ -51,4 +51,4 @@ class Adafruit_nRFCrypto_Hash
5151
uint8_t _digest_len;
5252
};
5353

54-
#endif /* ADAFRUIT_NRFCRYPTO_HASH_H_ */
54+
#endif /* NRFCRYPTO_HASH_H_ */

0 commit comments

Comments
 (0)