Crypto++ RSA

求解如何控制公钥、私钥、密文长度
void RSAPackage::generateKey(const unsigned int keyLen, const std::string &seed, std::string &strPriv, std::string &strPub) { RandomPool randPool; randPool.IncorporateEntropy((byte *)seed.c_str(), strlen(seed.c_str())); RSAES_OAEP_SHA_Decryptor priv(randPool, keyLen); HexEncoder privFile(new StringSink(strPriv)); priv.DEREncode(privFile); privFile.MessageEnd(); RSAES_OAEP_SHA_Encryptor pub(priv); HexEncoder pubFile(new StringSink(strPub)); pub.DEREncode(pubFile); pubFile.MessageEnd(); }

自顶的节奏么 :12: