if NS_FAILED(rv) {
if (NS_FAILED(rv)) {
wallet_Encrypt(const nsCString& text, nsCString& crypt) {  /* encrypt text to crypt */  char * cryptCString = nsnull;  nsresult rv = EncryptString(text.get(), cryptCString);  if NS_FAILED(rv) {    return rv;  }  crypt = cryptCString;  WALLET_FREE(cryptCString);  return NS_OK;}