Skip to content

Commit 41866ca

Browse files
authored
Update HeaderSpec.md
Changed unnecessary things
1 parent 22788f0 commit 41866ca

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/HeaderSpec.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
## Header format
44

5-
* At the start of the header, it is marked by 5 null characters (byte value 0000 0000), and then the following ASCII string: "BEGIN ENCRYPTION HEADER STRING"
6-
7-
* The end of the header is marked by the following ASCII string "END ENCRYPTION HEADER STRING", and followed by 5 null characters (byte value 0000 0000)
8-
95
* The items in the header are as followed (square brackets representing the start and end of the header, anything in braces is related to the previous option). Newlines and tabs are not true, but simply for formatting:
106

117
```
@@ -17,9 +13,12 @@
1713
{ -HASHALGO:(PBKDF2, SHA256, bcrypt) }
1814
{ -ITERATIONS:(iterations here) }
1915
-ENCRYPTMODE:(AES, RSA, etc)
20-
{ -AESMODE:(ECB, CBC, CFB, CTR) }
16+
{{-AESMODE:(ECB, CBC, CFB, CTR),
17+
-ECCMODE:(different curves fo here)}
18+
-KEYSIZE: (int)
19+
-BLOCKSIZE: (int)
20+
}
2121
{ -IV:(IV here) }
22-
-KEYSIZE:(int here)
2322
]
2423
```
2524

@@ -29,7 +28,7 @@
2928
| ------------- |-------------| ----- |
3029
| <a href="#HMAC">HMAC</a> | The verification hash used to confirm the file hasn't changed | 128 - 512 bit byte array (16-64 bytes) |
3130
| [KEYVERIFICATIONHASH](#KEYVERIFICATIONHASH) | A hash of the key to verify if the password is correct | 128 - 512 bit byte array (16-64 bytes) |
32-
| [ENCRYPTMODE](#ENCRYPTMODE) | A string representing the encryption type | A string in the table of [ENCRYPTMODE](#ENCRYPTMODE) page |
31+
| [ENCRYPTMODE](#ENCRYPTMODE) | A byte representing the encryption type | A number in the table of [ENCRYPTMODE](#ENCRYPTMODE) page |
3332

3433
### <p id="HMAC">HMAC</p>
3534

0 commit comments

Comments
 (0)