RE: openssl enc block size

2010-05-08 Thread David Schwartz
Johannes Baeuer wrote: > Why would a 16 byte block need to be padded by one byte to 17 bytes? Is it really not immediately obvious? No encrypted output for one or more bytes of input can be less than 16 bytes. Thus the smallest possible output sequence is 16-bytes. The number of possible encrypt

Re: openssl enc block size

2010-05-07 Thread Johan van Selst
Johannes Bauer wrote: > > padding > Why would a 16 byte block need to be padded by one byte to 17 bytes? If you see an arbitary block of 16 bytes data it's hard to tell immediately whether the last byte is a padding element that should be removed or part of the content. That is why padding is _alw

Re: openssl enc block size

2010-05-07 Thread Dimitrios Siganos
Johannes Bauer wrote: Hello list, I'm having trouble with the openssl enc feature. This here: echo -n '0123456789abcde' | openssl enc -aes128 -nosalt -K 00112233445566778899aabbccddeeff -iv | wc -c (encoding 15 characters) results in one result block being gen

RE: openssl enc block size

2010-05-07 Thread PMHager
Johannes Bauer wrote on Friday, May 07, 2010 11:40: > (encoding 15 characters) results in one result block being generated ... > when encrypting a full block ... > Then two result blocks are generated ... PKCS#5 padding appends 1..blocksize padding bytes. -- Peter-Michael Hager - acm senior - H

Re: openssl enc block size

2010-05-07 Thread Johannes Bauer
Original-Nachricht > > padding Why would a 16 byte block need to be padded by one byte to 17 bytes? Regards, Johannes -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 _

Re: openssl enc block size

2010-05-07 Thread carlyoung
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; } padding On Fri 07/05/10 10:39 AM , "Johannes Bauer" jb@gmx.de sent: Hello list, I'm having trouble with the openssl enc feature. This here: echo -n '0123456789abcde' | openssl enc -aes128 -nosalt -K 00112233445566778899aab

Re: openssl enc

2006-02-15 Thread Dr. Stephen Henson
On Wed, Feb 15, 2006, list wrote: > I am looking to encrypt/decrypt files using openssl with a public key.. > > I set up a test environment and created a key pair with: > openssl genrsa -des3 -out privkey.pem 2048 > openssl rsa -in privkey.pem -pubout -out pubkey.pem > > I can get encryption t

Re: openssl enc question

2000-08-11 Thread Eric Murray
On Fri, Aug 11, 2000 at 10:19:05AM -0600, dreamwvr wrote: > hi, >have a https server that is doing RSA as well as ok encyption but wanted > to change it so it could offer the strongest encryption available using > openssl on the pervasive browsers or at least support that if the browser > doe