[11291] in Athena Bugs

home help back first fref pref prev next nref lref last post

rsaix 7.6H: crypt functions can't be used in static binaries?

daemon@ATHENA.MIT.EDU (probe@MIT.EDU)
Wed Oct 27 12:27:34 1993

From: probe@MIT.EDU
Date: Wed, 27 Oct 1993 12:27:23 -0400
To: Calvin Clark <ckclark@MIT.EDU>
Cc: bugs@MIT.EDU


I opened PMR 6x336 with IBM, and they have returned the call to inform
me that this is working as designed.

The reason that it is difficult to statically build any program with these
functions is that the US laws dictate that programs with cryptography should
not be exported.  They were implementing a mechanism by which it makes it
difficult for users to create programs that could easily inadvertently be
exported.

If you need to build something statically, you can create a four line
import file that can be used during linking, containing the following:

	#!
	__setkey
	__encrypt
	__crypt

IBM does consider it a mis-feature that there exists this workaround, so I
cannot guarantee that this will always work.  However, I don't think it will
break anytime soon (that is my personal opinion, and not substantiated by
anything IBM has said).

-Richard Basch

home help back first fref pref prev next nref lref last post