• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

ISO/IEC 9797-1 MAC Algorithm 3 how to?

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
piotrek
Just Arrived
Just Arrived


Joined: 13 Oct 2008
Posts: 0


Offline

PostPosted: Mon Oct 13, 2008 11:50 am    Post subject: ISO/IEC 9797-1 MAC Algorithm 3 how to? Reply with quote

Can anyone help me how to write it in .NET?
Back to top
View user's profile Send private message
KNRGoodMood
Just Arrived
Just Arrived


Joined: 24 Feb 2009
Posts: 0


Offline

PostPosted: Tue Feb 24, 2009 9:44 pm    Post subject: Reply with quote

it's rather simple to write it based on, say, DES.
The algorithm resembles CBC.

First, pad the message starting with byte 0x80 and following with zeroes so that the length of the message in bytes will be multiple of 8.

Then, encrypt the padded message with single DES CBC using first 8 bytes of the key.

Finally, encrypt the last block using all 16 bytes of the key with 112-bit 3DES ECB.

The result will be your 8 bytes.
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter