The crypt Reference Manual

This is the crypt Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 15:06:52 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 crypt

Common-Lisp implementation of unix crypt function

Author

John A.R. Williams <>

License

GPL

Source

crypt.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 crypt/crypt.asd

Source

crypt.asd.

Parent Component

crypt (system).

ASDF Systems

crypt.


3.1.2 crypt/package.lisp

Source

crypt.asd.

Parent Component

crypt (system).

Packages

crypt.


3.1.3 crypt/crypt.lisp

Dependency

package.lisp (file).

Source

crypt.asd.

Parent Component

crypt (system).

Public Interface
Internals

4 Packages

Packages are listed by definition order.


4.1 crypt

Common-Lisp implementation of unix crypt function

Source

package.lisp.

Use List

common-lisp.

Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Ordinary functions

Function: crypt (pwd &optional salt)

Password encrypion function.
PWD is the user’s typed password.
SALT is a two character string chosen from the set [a-zA-Z0-9./] used to perturb the algorithm in one of 4096 different ways.
Returns the 13 character encrypted password.

Package

crypt.

Source

crypt.lisp.

Function: random-salt (&optional length)

Generate random salt string of given length (default 2)

Package

crypt.

Source

crypt.lisp.


5.2 Internals


5.2.1 Special variables

Special Variable: +con-salt+
Package

crypt.

Source

crypt.lisp.

Special Variable: +cov-2char+
Package

crypt.

Source

crypt.lisp.

Special Variable: +iterations+
Package

crypt.

Source

crypt.lisp.

Special Variable: +shifts2+
Package

crypt.

Source

crypt.lisp.

Special Variable: +skb+
Package

crypt.

Source

crypt.lisp.

Special Variable: +sptrans+
Package

crypt.

Source

crypt.lisp.


5.2.2 Ordinary functions

Function: 4-octets-to-word (bytes &optional offset)
Package

crypt.

Source

crypt.lisp.

Function: bits (value)
Package

crypt.

Source

crypt.lisp.

Function: body (schedule e0 e1)
Package

crypt.

Source

crypt.lisp.

Function: d-encrypt (l r idx e0 e1 s)
Package

crypt.

Source

crypt.lisp.

Function: des-set-key (key)
Package

crypt.

Source

crypt.lisp.

Function: hperm-op (a n m)
Package

crypt.

Source

crypt.lisp.

Function: lshift (value n)
Package

crypt.

Source

crypt.lisp.

Function: perm-op (a b n m)
Package

crypt.

Source

crypt.lisp.

Function: rshift (value n)
Package

crypt.

Source

crypt.lisp.

Function: word-to-4-octets (value bytes &optional offset)
Package

crypt.

Source

crypt.lisp.


Appendix A Indexes


A.1 Concepts