Subject: Re: VIA ACE patch
To: Daniel de Kok <danieldk@pobox.com>
From: Daniel de Kok <danieldk@pobox.com>
List: tech-crypto
Date: 01/18/2007 17:51:36
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-1764314302-1169139096=:991
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Fri, 12 Jan 2007, Daniel de Kok wrote:
> I have mostly completed my port of the OpenBSD VIA ACE code, and I have
> attached a patch. This area is pretty new to me, so please be gentle.
Here's the updated patch, primarily integrating Rui's suggestions.
-- Daniel
--0-1764314302-1169139096=:991
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=via_ace2.diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.0701181751360.991@liza.taickim.net>
Content-Description:
Content-Disposition: attachment; filename=via_ace2.diff
SW5kZXg6IHN5cy9hcmNoL2kzODYvY29uZi9HRU5FUklDDQo9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2c3Jvb3Qvc3JjL3N5cy9hcmNo
L2kzODYvY29uZi9HRU5FUklDLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS44
MDMNCmRpZmYgLXUgLXIxLjgwMyBHRU5FUklDDQotLS0gc3lzL2FyY2gvaTM4
Ni9jb25mL0dFTkVSSUMJMTcgRGVjIDIwMDYgMjM6MDI6MDYgLTAwMDAJMS44
MDMNCisrKyBzeXMvYXJjaC9pMzg2L2NvbmYvR0VORVJJQwkxNCBKYW4gMjAw
NyAyMzoyMjo0OSAtMDAwMA0KQEAgLTUyLDYgKzUyLDkgQEANCiAjIEFNRCBQ
b3dlck5vdyEgYW5kIENvb2xgbidRdWlldCB0ZWNobm9sb2d5DQogb3B0aW9u
cyAJUE9XRVJOT1dfSzgNCiANCisjIFZJQSBQYWRMb2NrDQorI29wdGlvbnMJ
VklBX1BBRExPQ0sNCisNCi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