PORT_Assert(key->keyType == rsaKey); if (key->keyType != rsaKey)
PORT_Assert(key->keyType == lowRSAKey); if (key->keyType != lowRSAKey)
RSA_EncryptBlock(SECKEYLowPublicKey *key,                  unsigned char *     output, 		 unsigned int *      output_len,                 unsigned int        max_output_len, 		 unsigned char *     input, 		 unsigned int        input_len){    SECStatus     rv;    unsigned int  modulus_len = SECKEY_LowPublicModulusLen(key);    SECItem       formatted;    SECItem       unformatted;    formatted.data = NULL;    if (max_output_len < modulus_len)     	goto failure;    PORT_Assert(key->keyType == rsaKey);    if (key->keyType != rsaKey)    	goto failure;    unformatted.len  = input_len;    unformatted.data = input;    formatted.data   = NULL;    rv = RSA_FormatBlock(&formatted, modulus_len, RSA_BlockPublic,			 &unformatted);    if (rv != SECSuccess) 	goto failure;    rv = RSA_PublicKeyOp(&key->u.rsa, output, formatted.data);    if (rv != SECSuccess)     	goto failure;    PORT_ZFree(formatted.data, modulus_len);    *output_len = modulus_len;    return SECSuccess;failure:    if (formatted.data != NULL) 	PORT_ZFree(formatted.data, modulus_len);    return SECFailure;}