Hi Everyone,
// RSA_MinPad_Decryptor and RSA_MinPad_Encryptor can be used with key sizes of
// up to 2056 bits. To support larger key sizes, the implementation of the
// MinimalPadding class would have to be modified.
typedef RSAPrivateKeyTemplate<DecryptorTemplate<MinimalPadding, InvertibleRSAFunction> > RSA_MinPad_Decryptor;
typedef RSAPublicKeyTemplate<EncryptorTemplate<MinimalPadding, RSAFunction>, RSA_MinPad_Decryptor> RSA_MinPad_Encryptor;
// RSA_MinPadNoLen_Decryptor and RSA_MinPadNoLen_Encryptor do not store the length
// of the encoded plaintext. Consequentially, when the ciphertext is decrypted, the
// recovered plaintext always has the maximum size allowed by the RSA keypair.
// The consumer application has to decide for itself where the end of the plaintext is.
typedef RSAPrivateKeyTemplate<DecryptorTemplate<MinimalPaddingNoLength, InvertibleRSAFunction> > RSA_MinPadNoLen_Decryptor;
typedef RSAPublicKeyTemplate<EncryptorTemplate<MinimalPaddingNoLength, RSAFunction>, RSA_MinPadNoLen_Decryptor> RSA_MinPadNoLen_Encryptor;
Hi Everyone,
- we are upgrading from CryptoPP 4.1 to CryptoPP 5.6.5 and face the problem that we have implemented our own RSA padding scheme via the template mechanism
- unfortunately it seems that this templates do not exist anymore, is there another mechanism/templates/classes which can be used to implement a proprietary RSA padding?
- basically the padding scheme just fills up the message with random data until the modulus length (unfortunately the overlying protocol does not uses a standardized padding scheme...)
- any help is appreciated!