-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(HierarchyKeyring; CMC): Shared cache across Hierarchy Keyrings (#…
…747)
- Loading branch information
1 parent
36ede26
commit d4709e9
Showing
17 changed files
with
993 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...phicMaterialProviders/dafny/AwsCryptographicMaterialProviders/src/CMCs/CacheConstants.dfy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
include "../../Model/AwsCryptographyMaterialProvidersTypes.dfy" | ||
|
||
module CacheConstants { | ||
import opened StandardLibrary.UInt | ||
import Seq | ||
|
||
// Constants defined for cache identifier formulae | ||
|
||
// Null Byte | ||
const NULL_BYTE : seq<uint8> := [0x00] | ||
|
||
// Resource Id | ||
const RESOURCE_ID_CACHING_CMM: seq<uint8> := [0x01] | ||
const RESOURCE_ID_HIERARCHICAL_KEYRING: seq<uint8> := [0x02] | ||
|
||
// Scope Id | ||
const SCOPE_ID_ENCRYPT: seq<uint8> := [0x01] | ||
const SCOPE_ID_DECRYPT: seq<uint8> := [0x02] | ||
const SCOPE_ID_SEARCHABLE_ENCRYPTION: seq<uint8> := [0x03] | ||
} |
Oops, something went wrong.