View Single Post
  #1 (permalink)  
Old April 7th, 2010, 11:10 PM
phuc_tran phuc_tran is offline
Authorized User
 
Join Date: Dec 2008
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
Default [Cryptography]Challenges with Large integer using C/C++

Hi all.
I'm learning cryptography (My native language is not English , so I hope you understand what I mean).
There are some problem with my learning : a , b , n are large integer(big integer) , we need a lot of bits for restoring them (their bits > 100)
1. Input : a , b , n
Write function in order to calculate : m = (a * b) % n
Output : m
2. Input : a , b, n
Write function in order to calculate : m = (a ^ b) %n
Output : m
3. After write these function , how we can test them(because they are very large)

Please help.
Reply With Quote