[mercury-users] cryptography / RC4

Ralph Becket rafe at cs.mu.OZ.AU
Tue Feb 12 16:08:03 AEDT 2002


Michael Day, Tuesday, 12 February 2002:
> 
> Hi,
> 
> Has anyone implemented any cryptography algorithms in Mercury, such as RC4
> for example?

Michael Roe at Microsoft Research in Cambridge has implemented
some standard crypto algorithms in Mercury.  He used the "reversibility"
made possible thanks to Mercury's mode system to describe the crypto
relation once and get both encryption and decryption procedures
depending upon which mode ((in, out) vs (out, in)) was used.  This is
rather nice, since it halves the opportunity of introducing bugs in the
implementation.  On a related note, I know people at Cambridge Uni. have
also toyed with the idea of using Mercury as a hardware description
language whereby the same piece of code could be used to generate, say,
both a multiplexer and a demultiplexer.  There's an interesting PhD in
there somewhere if anybody's tempted... :)

- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list