[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No Subject



Submitted for your approval...

The recent CryptoLib, offered by the nice folks at AT&T (Written by Jack
Lacy and Don Mitchell), has a small problem: folks without RSA licenses are
given a crippled version without functional RSA code. It sucks, but they 
must cover their collective asses.

That small problem has now been rectified.  

Is CryptoLib available overseas yet?

================================CUT HERE===================================

*** -	Sun Dec 17 20:05:50 1995
--- rsa.c	Sun Dec 17 20:05:36 1995
***************
*** 411,421 ****
  #endif
  {
  	BigInt result;
! 	fprintf(stderr, "RSA encryption not supported without license.\n");
! 	result = bigInit(0);
  	return result;
  }
- 
  #ifdef K_AND_R
  _TYPE( BigInt )
  RSADecrypt(message, key)
--- 411,420 ----
  #endif
  {
  	BigInt result;
!         result = bigInit(0);
!         bigPow(message, key->publicExponent, key->modulus, result);
  	return result;
  }
  #ifdef K_AND_R
  _TYPE( BigInt )
  RSADecrypt(message, key)
***************
*** 427,434 ****
  #endif
  {
  	BigInt result;
! 	fprintf(stderr, "RSA decryption not supported without license.\n");
! 	result = bigInit(0);
  	return result;
  	
  }
--- 426,433 ----
  #endif
  {
  	BigInt result;
!         result = bigInit(0);
!         chineseRemTheorem(message, key, result);
  	return result;
  	
  }