|
1 | | -// Copyright 2024 Apple Inc. and the Swift Homomorphic Encryption project authors |
| 1 | +// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -51,14 +51,16 @@ message PirParameters { |
51 | 51 | apple.swift_homomorphic_encryption.v1.EvaluationKeyConfig evaluation_key_config = 8; |
52 | 52 | // Key compression strategy. |
53 | 53 | KeyCompressionStrategy key_compression_strategy = 9; |
54 | | - reserved 10, 11; |
| 54 | + reserved 10, 11, 12; |
55 | 55 | } |
56 | 56 |
|
57 | 57 | // Parameters for keyword PIR. |
58 | 58 | message KeywordPirParameters { |
59 | 59 | // The number of hash functions used. |
60 | 60 | uint64 num_hash_functions = 1; |
61 | | - reserved 2, 3; |
| 61 | + reserved 2; |
| 62 | + // Symmetric PIR configuration |
| 63 | + SymmetricPirClientConfig symmetric_pir_client_config = 3; |
62 | 64 | // The sharding function to use. |
63 | 65 | PIRShardingFunction sharding_function = 4; |
64 | 66 | } |
@@ -94,3 +96,19 @@ message EncryptedIndices { |
94 | 96 | // Number of PIR calls. |
95 | 97 | uint64 num_pir_calls = 2; |
96 | 98 | } |
| 99 | + |
| 100 | +// Scheme used for encrypting database entries in Symmetric PIR. |
| 101 | +enum SymmetricPirConfigType { |
| 102 | + // Unspecified config type. |
| 103 | + SYMMETRIC_PIR_CONFIG_TYPE_UNSPECIFIED = 0; |
| 104 | + // OPRF P384 AES-192-GCM, 96-bit nonce, 128-bit tag |
| 105 | + SYMMETRIC_PIR_CONFIG_TYPE_OPRF_P384_AES_GCM_192_NONCE_96_TAG_128 = 1; |
| 106 | +} |
| 107 | + |
| 108 | +// Client specific PIR configuration for Symmetric PIR |
| 109 | +message SymmetricPirClientConfig { |
| 110 | + // Server public key |
| 111 | + bytes server_public_key = 1; |
| 112 | + // Symmetric PIR config type |
| 113 | + SymmetricPirConfigType config_type = 2; |
| 114 | +} |
0 commit comments