Skip to content

Commit 002f018

Browse files
committed
Triggered c-syntax highlighting in README.md
1 parent 1c2fbd1 commit 002f018

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,20 @@ The library supports 3 kinds of operations.
3434

3535
The single block enc/decryption are the following methods:
3636

37-
void aes128_enc_single(uint8_t* key, void* data);
38-
void aes128_dec_single(uint8_t* key, void* data);
37+
```c
38+
void aes128_enc_single(uint8_t* key, void* data);
39+
void aes128_dec_single(uint8_t* key, void* data);
40+
```
3941
4042
Usage example:
41-
42-
uint8_t[] key = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
43-
char[] data = "0123456789012345"; //16 chars == 16 bytes
44-
aes128_enc_single(key, data);
45-
Serial.print("encrypted:");
46-
Serial.println(data);
47-
aes128_dec_single(key, data);
48-
Serial.print("decrypted:");
49-
Serial.println(data);
43+
44+
```c
45+
uint8_t[] key = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
46+
char[] data = "0123456789012345"; //16 chars == 16 bytes
47+
aes128_enc_single(key, data);
48+
Serial.print("encrypted:");
49+
Serial.println(data);
50+
aes128_dec_single(key, data);
51+
Serial.print("decrypted:");
52+
Serial.println(data);
53+
```

0 commit comments

Comments
 (0)