Skip to content

Commit 08e30b8

Browse files
committed
m
1 parent 99ac9fa commit 08e30b8

17 files changed

+3390
-218
lines changed

DynamoDbEncryption/runtimes/rust/src/bin/example/keyring/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pub mod branch_key_id_supplier;
22
pub mod hierarchical_keyring;
33
pub mod kms_rsa_keyring;
4-
// pub mod mrk_discovery_multi_keyring;
4+
pub mod mrk_discovery_multi_keyring;
55
pub mod multi_keyring;
66
pub mod multi_mrk_keyring;
77
pub mod raw_aes_keyring;

DynamoDbEncryption/runtimes/rust/src/bin/example/keyring/mrk_discovery_multi_keyring.rs

Lines changed: 210 additions & 201 deletions
Large diffs are not rendered by default.

DynamoDbEncryption/runtimes/rust/src/bin/example/keyring/raw_rsa_keyring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub async fn put_item_get_item() {
208208
.unwrap();
209209

210210
assert_eq!(resp.item, Some(item));
211-
println!("raw_rsa_keyring::put_item_get_item successful.");
211+
println!("raw_rsa_keyring successful.");
212212
}
213213

214214
fn exists(f: &str) -> bool {

DynamoDbEncryption/runtimes/rust/src/bin/example/main.rs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#![deny(clippy::all)]
77

88
pub mod basic_get_put_example;
9+
pub mod clientsupplier;
910
pub mod create_keystore_key;
1011
pub mod get_encrypted_data_key_description;
1112
pub mod itemencryptor;
@@ -25,6 +26,8 @@ pub async fn main() {
2526
keyring::multi_mrk_keyring::put_item_get_item().await;
2627
keyring::raw_aes_keyring::put_item_get_item().await;
2728
keyring::multi_keyring::put_item_get_item().await;
29+
keyring::mrk_discovery_multi_keyring::put_item_get_item().await;
30+
clientsupplier::client_supplier_example::put_item_get_item().await;
2831

2932
let key_id = create_keystore_key::keystore_create_key().await;
3033
let key_id2 = create_keystore_key::keystore_create_key().await;
@@ -33,19 +36,18 @@ pub async fn main() {
3336
println!("Key Store Keys created. Waiting 5 seconds for consistency.");
3437
std::thread::sleep(std::time::Duration::from_secs(5));
3538

36-
searchableencryption::basic_searchable_encryption::put_and_query_with_beacon(&key_id).await;
3739
keyring::hierarchical_keyring::put_item_get_item(&key_id, &key_id2).await;
38-
// // FIXME : ScanError will have to wait until we have a reasonable error message strategy
39-
40-
/*
41-
await ClientSupplierExample.ClientSupplierPutItemGetItem();
42-
await MrkDiscoveryMultiKeyringExample.MultiMrkDiscoveryKeyringGetItemPutItem();
43-
await MultiKeyringExample.MultiKeyringGetItemPutItem();
44-
45-
await CompoundBeaconSearchableEncryptionExample.PutItemQueryItemWithCompoundBeacon(keyId);
46-
await VirtualBeaconSearchableEncryptionExample.PutItemQueryItemWithVirtualBeacon(keyId);
47-
await BeaconStylesSearchableEncryptionExample.PutItemQueryItemWithBeaconStyles(keyId);
48-
await ComplexSearchableEncryptionExample.RunExample(keyId);
49-
*/
40+
41+
searchableencryption::basic_searchable_encryption::put_and_query_with_beacon(&key_id).await;
42+
searchableencryption::beacon_styles_searchable_encryption::put_and_query_with_beacon(&key_id)
43+
.await;
44+
searchableencryption::compound_beacon_searchable_encryption::put_and_query_with_beacon(&key_id)
45+
.await;
46+
searchableencryption::virtual_beacon_searchable_encryption::put_and_query_with_beacon(&key_id)
47+
.await;
48+
searchableencryption::complexexample::complex_searchable_encryption::run_example(&key_id).await;
49+
50+
// ScanError will have to wait until we have a reasonable error message strategy
51+
5052
println!("All examples completed successfully.\n");
5153
}

DynamoDbEncryption/runtimes/rust/src/bin/example/searchableencryption/basic_searchable_encryption.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,5 +366,5 @@ pub async fn put_and_query_with_beacon(branch_key_id: &str) {
366366
);
367367
break;
368368
}
369-
println!("put_and_query_with_beacon successful.");
369+
println!("basic_searchable_encryption successful.");
370370
}

0 commit comments

Comments
 (0)