Lines Matching defs:decryptor
264 std::auto_ptr<PK_Decryptor> decryptor(ObjectFactoryRegistry<PK_Decryptor>::Registry().CreateObject(name.c_str()));
270 decryptor->AccessMaterial().Load(StringStore(GetDecodedDatum(v, "PrivateKey")).Ref());
276 decryptor->AccessMaterial().AssignFrom(pairs);
283 StringSource ss(GetDecodedDatum(v, "Ciphertext"), true, new PK_DecryptorFilter(GlobalRNG(), *decryptor, new StringSink(decrypted)));
289 TestKeyPairValidAndConsistent(encryptor->AccessMaterial(), decryptor->GetMaterial());
311 static member_ptr<SymmetricCipher> encryptor, decryptor;
317 decryptor.reset(ObjectFactoryRegistry<SymmetricCipher, DECRYPTION>::Registry().CreateObject(name.c_str()));
328 decryptor->Resynchronize(iv.begin(), (int)iv.size());
333 decryptor->SetKey((const byte *)key.data(), key.size(), pairs);
340 decryptor->Seek(seek);
373 StringSource dd(encrypted, false, new StreamTransformationFilter(*decryptor, new StringSink(decrypted), StreamTransformationFilter::NO_PADDING));