Lines Matching defs:encryptor
263 std::auto_ptr<PK_Encryptor> encryptor(ObjectFactoryRegistry<PK_Encryptor>::Registry().CreateObject(name.c_str()));
271 encryptor->AccessMaterial().Load(StringStore(GetDecodedDatum(v, "PublicKey")).Ref());
277 encryptor->AccessMaterial().AssignFrom(pairs);
289 TestKeyPairValidAndConsistent(encryptor->AccessMaterial(), decryptor->GetMaterial());
311 static member_ptr<SymmetricCipher> encryptor, decryptor;
316 encryptor.reset(ObjectFactoryRegistry<SymmetricCipher, ENCRYPTION>::Registry().CreateObject(name.c_str()));
322 if (pairs.GetValue(Name::IV(), iv) && iv.size() != encryptor->IVSize())
327 encryptor->Resynchronize(iv.begin(), (int)iv.size());
332 encryptor->SetKey((const byte *)key.data(), key.size(), pairs);
339 encryptor->Seek(seek);
343 StringSource ss(plaintext, false, new StreamTransformationFilter(*encryptor, new StringSink(encrypted), StreamTransformationFilter::NO_PADDING));
348 encryptor->Seek(seek);
349 StringSource ss(plaintext, false, new StreamTransformationFilter(*encryptor, new StringSink(z), StreamTransformationFilter::NO_PADDING));