Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xcrypt(3R) — bsd — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

des_crypt(3)

publickey(4)



XCRYPT(3R-BSD)      RISC/os Reference Manual       XCRYPT(3R-BSD)



NAME
     xcrypt, xdecrypt, passwd2des - hex encryption and utility
          routines

SYNOPSIS
     For -systype svr3 and -systype bsd43:

     xencrypt(data, key)
          char *data;
          char *key;

     xdecrypt(data, key)
          char *data;
          char *key;

     passwd2des(pass, key)
          char *pass;
          char *key;

DESCRIPTION
     The routines xencrypt and xdecrypt take NULL-terminated hex-
     adecimal strings as arguments, and encrypt them using the
     8-byte key as input to the DES algorithm. The input strings
     must have a length that is a multiple on 16 hex digits (64
     bits is the DES block size).

     passwd2des converts a password, of arbitrary length, into an
     8-byte DES key, with odd-parity set in the low bit of each
     byte. The high-order bit of each input byte is ignored.

     These routines are used by the DES authentication subsystem
     for encrypting and decrypting the secret keys stored in the
     publickey database.

SEE ALSO
     des_crypt(3), publickey(4).

ORIGIN
     Sun Microsystems Inc.

NOTE
     These routines are not resolved by libc.a.  See intro(3R)
     for more information.












                        Printed 11/19/92                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026