Oracle8i Supplied PL/SQL Packages Reference
Release 2 (8.1.6)

Part Number A76936-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

DBMS_OBFUSCATION_TOOLKIT , 2 of 3


DESEncrypt Procedure

The DESEncrypt procedure generates the encrypted form of the input data. An example of the DESEncrypt syntax appears at the end of this chapter.

Parameter Descriptions

Table 23-1 and Table 23-2 list the parameters for the DESEncrypt syntax, their modes, types, and descriptions.

Table 23-1 DESEncrypt parameters for raw data
Parameter Name  Mode  Type  Description 

input 

IN 

RAW 

data to be encrypted 

key 

IN 

RAW 

encryption key 

encrypted_data 

OUT 

RAW 

encrypted data 

Table 23-2 DESEncrypt parameters for string data
Parameter Name  Mode  Type  Description 

input_string 

IN 

VARCHAR2  

string to be encrypted 

key_string 

IN 

VARCHAR2  

encryption key string 

encrypted_string 

OUT 

VARCHAR2  

encrypted string 

If the input data or key given to the PL/SQL DESEncrypt function is empty, then Oracle raises ORA error 28231 "Invalid input to Obfuscation toolkit".

If the input data given to the DESEncrypt function is not a multiple of 8 bytes, Oracle raises ORA error 28232 "Invalid input size for Obfuscation toolkit".

If the user tries to double encrypt data using the DESEncrypt function, then Oracle raises ORA error 28233 "Double encryption not supported by DESEncrypt in Obfuscation toolkit".

Encryption Procedure Restriction

The DESEncryption procedure has two restrictions. The first is that the DES key length for encryption is fixed at 56 bits; you cannot alter this key length.

The second is that you cannot execute multiple passes of encryption. That is, you cannot re-encrypt previously encrypted data by calling the function twice.


Note:

Both the key length limitation and the prevention of multiple encryption passes are requirements of US regulations governing the export of cryptographic products.  



Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index