Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Fixed based on vbatt's comments
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
  • Loading branch information
lumjjb committed Mar 12, 2020
1 parent bcb7903 commit 0f2cfb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions encrypted-mediatype.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The encryption metadata consists of 2 parts: the PublicLayerBlockCipherOptions a

Below are golang definitions of these JSON objects:

```
```golang
// LayerCipherType is the ciphertype as specified in the layer metadata
type LayerCipherType string
// PublicLayerBlockCipherOptions includes the information required to encrypt/decrypt
Expand Down Expand Up @@ -61,12 +61,13 @@ Details of the algorithms and protocols used in the encryption of the data blob
- The `cipherOptions` field specifies additional parameters used in the decryption process of the specified algorithm. This should be in accordance with the RFC standard of the algorithm used.

Example of `PublicLayerBlockCipherOption`:
```
```json
{
"cipher": "AES_256_CTR_HMAC_SHA256",
"hmac": "M0M5OTA5QUZFQzI1MzU0RDU1MURBRTIxNTkwQkIyNkUzOEQ1M0YyMTczQjhEM0RDM0VFRTRDMDQ3RTdBQjFDMQ=="
"cipheroptions": {}
}
```

Example of `PrivateLayerBlockCipherOption`:
```
Expand Down

0 comments on commit 0f2cfb8

Please sign in to comment.