× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dan:

On Thu, 14 March 2002, "Dan Bale" wrote:

> No kidding!  Might be just the thing to get our sluggish V3R7 clients to get
> current.  Is CIPHER an RPG opcode?  A built-in?  API?

Here're the bare basics for ILE RPG and CIPHER:

 D PlainText       S               *
 D CipherText      S               *
 D Controls        DS            32
 D   Function                     5I 0
 D*  Length                       5I 0 inz(%size(Input))
 D   Length                       5I 0 inz( 64 )
 D   CBC_Mode                     1A   inz(X'40')
 D   SecretKey                    1A   dim(8)
 D   Reserved_1                   1A   inz(*loval)
 D   InitChain                    8A   inz(X'5555555555555555')
 D   Reserved_2                  10A   inz(*loval)

 C                   eval      PlainText  = %addr( Input )
 C                   eval      CipherText = %addr( Output )

 C                   callb     '_CIPHER'
 C                   parm                    CipherText
 C                   parm                    Controls
 C                   parm                    PlainText

For details, check the CIPHER documentation. Modify as needed, etc. For basic 
stuff, that's about all there is to it.

Tom Liotta





--
Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788
Fax  253-872-7904
http://www.400Security.com


___________________________________________________
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.