Home | History | Annotate | Download | only in util

Lines Matching refs:bag

146   // Create a bag of all the Nigori parameters we know about.
147 sync_pb::NigoriKeyBag bag;
151 sync_pb::NigoriKey* key = bag.add_key();
158 // Encrypt the bag with the default Nigori.
159 return Encrypt(bag, encrypted);
223 sync_pb::NigoriKeyBag bag;
224 if (!Decrypt(encrypted, &bag))
226 InstallKeyBag(bag);
258 sync_pb::NigoriKeyBag bag;
259 if (!bag.ParseFromString(plaintext)) {
263 InstallKeyBag(bag);
306 void Cryptographer::InstallKeyBag(const sync_pb::NigoriKeyBag& bag) {
307 int key_size = bag.key_size();
309 const sync_pb::NigoriKey key = bag.key(i);
334 sync_pb::NigoriKeyBag bag;
335 if (!Decrypt(encrypted_bag, &bag)) {
340 if (static_cast<size_t>(bag.key_size()) < nigoris_.size())