Re: RSA Encryption



That is what I was saying. You can't actually encrypt 128 because of the
padding. Maybe you can if no padding is used, but not sure. It is key size
related, so a larger key can encrypt more bytes. But normally you will want
a symmetric encryption for large amounts of data.

--
William Stacey [MVP]

"no game" <xiangliang@xxxxxxxxxxx> wrote in message
news:1120158831.054683.76500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> For RSA 1024 bit encryption,
>
> Is it mean the output number of byte is always 128 bytes, and you can
> not encrypt more than 128 bytes of data.
>
> Thanks
>
> William Stacey [MVP] wrote:
>> The 117 byte limit is related to the size of the Asymetric key size. You
>> can only encrypt in block of something < key size depending on what
>> padding
>> is being used. However, most use a faster symmetric algo like AES
>> (Rijindael) then encrypt the key and IV with an RSA symmetric key.
>> --
>> William Stacey [MVP]
>>
>> "no game" <xiangliang@xxxxxxxxxxx> wrote in message
>> news:1119990515.967299.264100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> > Can I encrypt data more than 117 bytes in C# (can use CAPICOM and
>> > Crypto API libraries) using RSA 1024 bit.
>> >
>> > Any sample code would be appreciated.
>> >
>> > Thanks
>> >
>


.



Relevant Pages

  • Re: asymmetric encryption options
    ... now I am generating a random key, encrypting the data with it using ... then encrypting the key with rsa. ... You can split the longer key into blocks, and encrypt them alone. ... The original padding is really simple to implement, ...
    (comp.lang.ruby)
  • Re: Electronic Codebook/Cipher Block Chaining/Cipher Feedback/ Output Feedback
    ... Then you can snip out the padding after ... file types you encrypt are always in mutliples of 2 and at that you still ... know you gave is the correct keys so this is that data. ... compress this from one of Scott's bijective compressors or what? ...
    (sci.crypt)
  • RSA padding questions
    ... encrypted using RSA and standard OAEP ... padding, ... still produces the same ciphertext 'c'? ... and then have 'm1' be any gibberish random text that would encrypt to ...
    (sci.crypt)
  • Re: Padding twice in GCM - why?
    ... to a block boundary with zeros *twice*, first at the end of the ... "AAD", and then again at the end ... lot of padding at the end of the ciphertext. ... In the encrypt direction, a pipelined implementation of GCM (and GCM was ...
    (sci.crypt)
  • Re: RSA Encryption
    ... this is a limit set by the RSA 1024 bit algorithm. ... William Stacey [MVP] wrote: ... Maybe you can if no padding is used, ... so a larger key can encrypt more bytes. ...
    (microsoft.public.dotnet.languages.csharp)