static PRUint8 rc4_known_plaintext[] = { "Netscape" };
static const PRUint8 rc4_known_plaintext[] = { "Netscape" };
pk11_fips_RC4_PowerUpSelfTest( void ){    /* RC4 Known Key (40-bits). */    static PRUint8 rc4_known_key[] = { "RSARC" };    /* RC4 Known Plaintext (64-bits). */    static PRUint8 rc4_known_plaintext[] = { "Netscape" };    /* RC4 Known Ciphertext (64-bits). */    static PRUint8 rc4_known_ciphertext[] = {				0x29,0x33,0xc7,0x9a,0x9d,0x6c,0x09,0xdd};    /* RC4 variables. */    PRUint8        rc4_computed_ciphertext[FIPS_RC4_ENCRYPT_LENGTH];    PRUint8        rc4_computed_plaintext[FIPS_RC4_DECRYPT_LENGTH];    RC4Context *   rc4_context;    unsigned int   rc4_bytes_encrypted;    unsigned int   rc4_bytes_decrypted;    SECStatus      rc4_status;    /**************************************************/    /* RC4 Single-Round Known Answer Encryption Test: */    /**************************************************/    rc4_context = RC4_CreateContext( rc4_known_key, FIPS_RC4_KEY_LENGTH );    if( rc4_context == NULL )        return( CKR_HOST_MEMORY );    rc4_status = RC4_Encrypt( rc4_context, rc4_computed_ciphertext,                              &rc4_bytes_encrypted, FIPS_RC4_ENCRYPT_LENGTH,                              rc4_known_plaintext, FIPS_RC4_DECRYPT_LENGTH );    RC4_DestroyContext( rc4_context, PR_TRUE );    if( ( rc4_status != SECSuccess ) ||        ( rc4_bytes_encrypted != FIPS_RC4_ENCRYPT_LENGTH ) ||        ( PORT_Memcmp( rc4_computed_ciphertext, rc4_known_ciphertext,                       FIPS_RC4_ENCRYPT_LENGTH ) != 0 ) )        return( CKR_DEVICE_ERROR );    /**************************************************/    /* RC4 Single-Round Known Answer Decryption Test: */    /**************************************************/    rc4_context = RC4_CreateContext( rc4_known_key, FIPS_RC4_KEY_LENGTH );    if( rc4_context == NULL )        return( CKR_HOST_MEMORY );    rc4_status = RC4_Decrypt( rc4_context, rc4_computed_plaintext,                              &rc4_bytes_decrypted, FIPS_RC4_DECRYPT_LENGTH,                              rc4_known_ciphertext, FIPS_RC4_ENCRYPT_LENGTH );    RC4_DestroyContext( rc4_context, PR_TRUE );    if( ( rc4_status != SECSuccess ) ||        ( rc4_bytes_decrypted != FIPS_RC4_DECRYPT_LENGTH ) ||        ( PORT_Memcmp( rc4_computed_plaintext, rc4_known_plaintext,                       FIPS_RC4_DECRYPT_LENGTH ) != 0 ) )        return( CKR_DEVICE_ERROR );    return( CKR_OK );}