question on crypt(3x) routines

Charles Wolff charles at caffeine.UUCP
Wed Feb 20 03:26:02 AEST 1991


In article <14589 at mcdphx.phx.mcd.mot.com> charles at phx.mcd.mot.com (Charles Wolff) writes:
}
}Can anyone either provide a response to the following or
}point me toward a more appropriate newsgroup?
}
}I am looking at the "crypt(3X)" routines "setkey()" and "encrypt()",
}in SysV Rel 3.2, and it's not clear to me how they're supposed to be
}used.  The manual page says:
}
	I have already received a VERY helpful reply to this from
	Mike Oliver at Pyramid, so no need for more follow-ups.

	Briefly, the 64 character arrays passed to setkey() and
	encrypt() are "encoded" versions of the binary representations
	of the characters; for example, if the first character is
	'A', then 'A' = 0x41 = 01000001 which leads to:

		setargs[0] = 0
		setargs[1] = 1
		setargs[2] = 0

	and so on... based on the manual page, I hadn't figured this
	part of it out, and didn't understand what was supposed to
	go into the argument arrays to setkey() and encrypt().

Charles Wolff



More information about the Comp.unix.questions mailing list