For Programmers: Free Programming Magazines  


Home > Archive > Java Security > March 2004 > encrypting MAC using RSA?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author encrypting MAC using RSA?
stig

2004-03-19, 8:55 pm

hi

if i have a MAC (message authentication code) created with
javax.crypto.Mac, is there some way of encrypting this MAC using a RSA
with a public key?

whats the difference beetween a digest and a MAC?
can i use the digest instead?

sun java SDK 1.4.2 is used.

/stig
Michael Amling

2004-03-27, 12:31 am

stig wrote:
> if i have a MAC (message authentication code) created with
> javax.crypto.Mac, is there some way of encrypting this MAC using a RSA
> with a public key?


Yes, but why would you want to?

> whats the difference beetween a digest and a MAC?
> can i use the digest instead?


A MAC is formed with a secret key. Only those who know the key can
form a valid MAC or verify an existing MAC. A digest is unkeyed.

--Mike Amling

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com