Home    XP_CRYPT Online Help Prev Next
How To use XP_CRYPT GUI
Introduction
What is XP_CRYPT
System requirements
Free version limitations
End user license agreement
Installing XP_CRYPT
Installation procedure
Activation
XP_CRYPT API
What's new
Encryption methods overview
Session
xp_crypt_set_var
xp_crypt_get_var
xp_crypt_close_session
xp_crypt_init_session
xp_crypt_set_option
Asymmetric keys
DSA
xp_dsa_free_key
xp_dsa_load_key
xp_dsa_save_key
xp_dsa_generate_couple
RSA
xp_rsa_generate_couple
xp_rsa_generate_pub_key
xp_rsa_load_key
xp_rsa_priv_dec
xp_rsa_pub_enc
xp_rsa_save_key
xp_rsa_free_key
Digital signatures
DSA
xp_dsa_verify
xp_dsa_sign
RSA
xp_rsa_sign
xp_rsa_verify
Hashing
xp_crypt
xp_md5
xp_sha1
Symmetric encryption
AES128
xp_aes128_decrypt
xp_aes128_encrypt
AES
xp_aes_decrypt
xp_aes_encrypt
DESX
xp_desx_decrypt
xp_desx_encrypt
RC4
xp_rc4_decrypt
xp_rc4_encrypt
Triple DES
xp_des3_encrypt
xp_des3_decrypt
Error codes
Tutorial
How to use GUI
Advanced technique (Old)
Table encryption (Old)
Troubleshooting
Troubleshooting overview

Error codes

All XP_CRYPT functions return an error code. You can get it in this way :

declare @ret_code int

...
-- Testing whether decryption was successful
exec @ret_code = xp_rsa_priv_dec @CryptedText, '<privatekey.pem', @name OUTPUT, @dateofbirth OUTPUT , @department OUTPUT, 'PassForThePrivateKey'
if @ret_code != 0 
begin
-- handle error here. To notify frontend application you can use RAISEERROR 
end

You can check its meaning in this table.

Value Description
0 No error
1 Password is not specified
2 Key is invalid
3 Failure of srv_paraminfo
4 BIO error. Cannot parse base64 encoding
5 Memory allocation error
6 Encryption error
7 Key parameter can't be empty or NULL
8 Clear text parameter can't be NULL
9 Encrypted text parameter can't be empty or NULL
10 Password parameter can't be empty or NULL
11 Error while generating RSA key
12 Decryption error
13 Not valid private key
14 Size parameter can't be empty or NULL
15 Password is required for saving the private key
16 Filename parameter can't be empty or NULL
17 Unexpected error ( please report to support@activecrypt.com )
18 Output variable is too short
19 Parameter should be for 'OUTPUT'
23 Bad salt value
24 Shareware limitation
26 Cannot read key
27 Registration information is wrong or not found
28 Wrong binary. Your registration information is found but you are using a free version of XP_CRYPT. Please update to full version.
29 Cannot open/read from file
30 Cannot create/write to file
31 Not enough parameters

 
2004-2011 (c) Active Crypt Software. All rights reserved.

Browser Based Help. Published by chm2web software.