feat: update spec1.1

This commit is contained in:
2023-03-25 15:50:39 +08:00
parent cf32c86c0c
commit 9a6e5ff067

View File

@@ -26,16 +26,16 @@ Meta format:
| ageRecipient | String | `deprecated` Hex(Sha256(PGP Publickey)) |
| envelop | String | `deprecated` KMS Encrypted DataKey |
| envelops | Envelop[] | Envelop Array |
| nonce | String | `base64` GCM Nonce |
| nonce | String | `base64` GCM Nonce |
| fileLength | Long | File Length |
| fileLastModified | Long | File Last Modified, Unix Epoch |
| compress | Boolean | Compressed or Not |
| compress | Boolean | Compressed or Not, GZIP if `true` |
Envelop format:
| Field | Type | Comment |
|--------------|--------|--------------------------|
| type | String | `kms`, `pgp`, ... |
| kid | String | Key ID |
| desc | String | \[Optional\] Description |
| encryptedKey | String | `base64` Encrypted Key |
| Field | Type | Comment |
|--------------|--------|-------------------------|
| type | String | Type: `kms`, `pgp`, ... |
| kid | String | Key ID |
| desc | String | `optional` Description |
| encryptedKey | String | `base64` Encrypted Key |