feat: update spec
This commit is contained in:
@@ -13,7 +13,7 @@ File format:
|
|||||||
Meta format:
|
Meta format:
|
||||||
|
|
||||||
| Field | Type | Comment |
|
| Field | Type | Comment |
|
||||||
|------------------|-----------|----------------------------------------------|
|
|---------------------|-----------|----------------------------------------------|
|
||||||
| version | String | Constant value: `1.1` |
|
| version | String | Constant value: `1.1` |
|
||||||
| created | Long | Created time, Unix Epoch |
|
| created | Long | Created time, Unix Epoch |
|
||||||
| userAgent | String | User Agent, e.g. `TinyEncrypt v0.5.1@MacOS` |
|
| userAgent | String | User Agent, e.g. `TinyEncrypt v0.5.1@MacOS` |
|
||||||
@@ -28,6 +28,7 @@ Meta format:
|
|||||||
| ecdhPoint | String | `deprecated` 02*** |
|
| ecdhPoint | String | `deprecated` 02*** |
|
||||||
| envelop | String | `deprecated` KMS Encrypted DataKey |
|
| envelop | String | `deprecated` KMS Encrypted DataKey |
|
||||||
| envelops | Envelop[] | Envelop Array |
|
| envelops | Envelop[] | Envelop Array |
|
||||||
|
| encryptionAlgorithm | String | `optional` Default `AES/GCM` |
|
||||||
| nonce | String | `base64` GCM Nonce |
|
| nonce | String | `base64` GCM Nonce |
|
||||||
| fileLength | Long | File Length |
|
| fileLength | Long | File Length |
|
||||||
| fileLastModified | Long | File Last Modified, Unix Epoch |
|
| fileLastModified | Long | File Last Modified, Unix Epoch |
|
||||||
@@ -36,8 +37,8 @@ Meta format:
|
|||||||
Envelop format:
|
Envelop format:
|
||||||
|
|
||||||
| Field | Type | Comment |
|
| Field | Type | Comment |
|
||||||
|--------------|--------|-------------------------|
|
|--------------|--------|----------------------------------------|
|
||||||
| type | String | Type: `kms`, `pgp`, ... |
|
| type | String | Type: `kms`, `pgp`, `age`, `ecdh`, ... |
|
||||||
| kid | String | Key ID |
|
| kid | String | Key ID |
|
||||||
| desc | String | `optional` Description |
|
| desc | String | `optional` Description |
|
||||||
| encryptedKey | String | `base64` Encrypted Key |
|
| encryptedKey | String | `base64` Encrypted Key |
|
||||||
Reference in New Issue
Block a user