Database Reference
In-Depth Information
ext_modulus VARCHAR2,
ext_exponent VARCHAR2,
secret_pass_salt OUT RAW,
secret_pass_count OUT RAW,
secret_pass_algorithm OUT RAW,
secret_pass OUT RAW,
m_err_no OUT NUMBER,
m_err_txt OUT VARCHAR2 );
-- For Chapter 6 testing only - remove in later versions of this package
PROCEDURE p_get_des_crypt_test_data(
ext_modulus VARCHAR2,
ext_exponent VARCHAR2,
secret_pass_salt OUT RAW,
secret_pass_count OUT RAW,
secret_pass_algorithm OUT RAW,
secret_pass OUT RAW,
m_err_no OUT NUMBER,
m_err_txt OUT VARCHAR2,
test_data VARCHAR2,
crypt_data OUT RAW );
FUNCTION f_get_crypt_secret_pass( ext_modulus VARCHAR2,
ext_exponent VARCHAR2 ) RETURN RAW;
FUNCTION f_get_crypt_secret_algorithm( ext_modulus VARCHAR2,
ext_exponent VARCHAR2 ) RETURN RAW;
FUNCTION f_get_crypt_secret_salt( ext_modulus VARCHAR2,
ext_exponent VARCHAR2 ) RETURN RAW;
FUNCTION f_get_crypt_secret_count( ext_modulus VARCHAR2,
ext_exponent VARCHAR2 ) RETURN RAW;
FUNCTION f_get_crypt_data( clear_text VARCHAR2 ) RETURN RAW;
FUNCTION f_get_decrypt_data( crypt_data RAW ) RETURN VARCHAR2;
-- For Chapter 6 testing only - remove in later versions of this package
FUNCTION f_show_algorithm RETURN VARCHAR2;
END app_sec_pkg;
/
See the list of functions in the second half of the package specification. We have one function to
return the encrypted RAW data for each of the secret password key artifacts: f_get_crypt_secret_pass ,
f_get_crypt_secret_ algorithm , f_get_crypt_secret_ salt , and f_get_crypt_secret_ count . We also
have functions to encrypt clear text and return an encrypted RAW , f_get_crypt_data , and to decrypt a RAW
and return clear text, f_get_decrypt_data (we have not seen the Java side of that process yet).
Above our functions, we specify two procedures: p_get_shared_passphrase and
p_get_des_crypt_test_data . Each of these procedures takes the client RSA public key modulus and
exponent as input parameters, and returns the secret password key artifacts as OUT parameters. We are
 
Search WWH ::




Custom Search