Re: PadLock XSHA

2008-10-02 Thread Harald Welte
Sorry for the late response, and putting on my VIA hat for a second: On Sat, Aug 30, 2008 at 09:55:00PM +1200, Michal Ludvig wrote: > > Can you remind me the reason why our PadLock SHA implementation > > copies things into a page before hashing it? > > > > According to the programming manual, i

Re: PadLock XSHA

2008-10-02 Thread Harald Welte
Hi again, On Mon, Sep 01, 2008 at 01:44:13PM +1000, Herbert Xu wrote: > On Mon, Sep 01, 2008 at 01:32:48PM +1200, Michal Ludvig wrote: > > > > That's right, I confused SHA with AES in PadLock, sorry. With AES the > > first versions required 16-byte alignment on input and output data as > > well

Re: PadLock XSHA

2008-08-31 Thread Herbert Xu
On Mon, Sep 01, 2008 at 01:32:48PM +1200, Michal Ludvig wrote: > > That's right, I confused SHA with AES in PadLock, sorry. With AES the > first versions required 16-byte alignment on input and output data as > well as on the control word and there's a flag in newer PadLocks that > allow doing A

Re: PadLock XSHA

2008-08-31 Thread Michal Ludvig
Herbert Xu wrote: On Sat, Aug 30, 2008 at 09:55:00PM +1200, Michal Ludvig wrote: IIRC The first versions of VIA PadLock required the input data to be aligned on 16-bytes boundaries and more importantly they always finalised the hash. Therefore we had to collect all data before hashing them. Hm

Re: PadLock XSHA

2008-08-30 Thread Herbert Xu
On Sat, Aug 30, 2008 at 09:55:00PM +1200, Michal Ludvig wrote: > > IIRC The first versions of VIA PadLock required the input data to be > aligned on 16-bytes boundaries and more importantly they always > finalised the hash. Therefore we had to collect all data before hashing > them. Hmm, the curr

Re: PadLock XSHA

2008-08-30 Thread Herbert Xu
On Sat, Aug 30, 2008 at 09:55:00PM +1200, Michal Ludvig wrote: > > IIRC The first versions of VIA PadLock required the input data to be > aligned on 16-bytes boundaries and more importantly they always > finalised the hash. Therefore we had to collect all data before hashing > them. Ah yes, the f

Re: PadLock XSHA

2008-08-30 Thread Michal Ludvig
Hi Herbert, > Can you remind me the reason why our PadLock SHA implementation > copies things into a page before hashing it? > > According to the programming manual, it would seem that the state > should be recorded in EDI after each 64-byte block so we should > be able to use the init/update/fin

PadLock XSHA

2008-08-30 Thread Herbert Xu
Hi Michal: Can you remind me the reason why our PadLock SHA implementation copies things into a page before hashing it? According to the programming manual, it would seem that the state should be recorded in EDI after each 64-byte block so we should be able to use the init/update/final model, no?