| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| type EncryptionAlgorithm int32 |
| type EncryptionKey []byte |
| NoEncryption = EncryptionAlgorithm(0) |
| TestEncryption = EncryptionAlgorithm(1) |
| IbeEncryption = EncryptionAlgorithm(2) |
| // AdInfo represents advertisement information for discovery. |
| Ad discovery.Advertisement |
| // Type of encryption applied to the advertisement so that it can |
| // only be decoded by authorized principals. |
| EncryptionAlgorithm EncryptionAlgorithm |
| // If the advertisement is encrypted, then the data required to |
| // decrypt it. The format of this data is a function of the algorithm. |
| EncryptionKeys []EncryptionKey |
| // Hash of the current advertisement. |
| // The addresses (vanadium object names) that the advertisement directory service |
| // is served on. See directory.vdl. |
| // TODO(jhahn): Add proximity. |
| // TODO(jhahn): Use proximity for Lost. |
| // An AdHash is a hash of an advertisement. |