/*************************************************************************** * (c)2008-2010 Broadcom Corporation * * This program is the proprietary software of Broadcom Corporation and/or its licensors, * and may only be used, duplicated, modified or distributed pursuant to the terms and * conditions of a separate, written license agreement executed between you and Broadcom * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants * no license (express or implied), right to use, or waiver of any kind with respect to the * Software, and Broadcom expressly reserves all rights in and to the Software and all * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. * * Except as expressly set forth in the Authorized License, * * 1. This program, including its structure, sequence and organization, constitutes the valuable trade * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, * and to use this information only in connection with your use of Broadcom integrated circuit products. * * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF * USE OR PERFORMANCE OF THE SOFTWARE. * * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF * ANY LIMITED REMEDY. * * $brcm_Workfile: decrypto.h $ * $brcm_Revision: 2 $ * $brcm_Date: 7/22/10 11:02a $ * * Module Description: * * Revision History: * * $brcm_Log: /nexus/lib/dtcp_ip/include/decrypto.h $ * * 2 7/22/10 11:02a leisun * SW7420-561: fix production key handling for 7420 * ***************************************************************************/ /** * @brief Defines the private structure for Netflix DRM module. */ /*************************************************************************** * Copyright (c) 2008, Broadcom Corporation * All Rights Reserved * Confidential Property of Broadcom Corporation * * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR * (c)2008-2010 Broadcom Corporation * * This program is the proprietary software of Broadcom Corporation and/or its licensors, * and may only be used, duplicated, modified or distributed pursuant to the terms and * conditions of a separate, written license agreement executed between you and Broadcom * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants * no license (express or implied), right to use, or waiver of any kind with respect to the * Software, and Broadcom expressly reserves all rights in and to the Software and all * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. * * Except as expressly set forth in the Authorized License, * * 1. This program, including its structure, sequence and organization, constitutes the valuable trade * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, * and to use this information only in connection with your use of Broadcom integrated circuit products. * * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF * USE OR PERFORMANCE OF THE SOFTWARE. * * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF * ANY LIMITED REMEDY. * * $brcm_Workfile: decrypto.h $ * $brcm_Revision: 2 $ * $brcm_Date: 7/22/10 11:02a $ * * Module Description: * * Revision History: * * $brcm_Log: /nexus/lib/dtcp_ip/include/decrypto.h $ * * 2 7/22/10 11:02a leisun * SW7420-561: fix production key handling for 7420 * ***************************************************************************/ /** * @brief Defines the private structure for Netflix DRM module. */ #ifndef _DRM_NETFLIX_H_ #define _DRM_NETFLIX_H_ #ifdef __cplusplus extern "C" { #endif #if (BCHP_CHIP == 7408) static const uint8_t CUSTOMER_KEY_SELECT = (0x00); static const uint8_t FLASH_KEY_KEY_VAR_LOW = (0x7F); static const uint8_t FLASH_KEY_KEY_VAR_HIGH = (0x7F); /* // 128-bit proc_inx_data in big-endian format, set this paramter if using Customer Key Select */ static const uint8_t FLASH_PROC_IN1_DATA[] = {0xa1, 0x7d, 0xdc, 0xab, 0xb2, 0x3b, 0x6d, 0xf4, 0x1c, 0xa9, 0x36, 0x98, 0x84, 0x5b, 0x97, 0x19}; static const uint8_t FLASH_PROC_IN2_DATA[] = {0xEC, 0x9B, 0xF2, 0x86, 0xD9, 0x25, 0x52, 0xB7, 0x11, 0x49, 0x87, 0xF0, 0xAE, 0xC3, 0xF2, 0x43}; #else static const uint8_t CUSTOMER_KEY_SELECT = (0x00); static const uint8_t FLASH_KEY_KEY_VAR_LOW = (0x38); static const uint8_t FLASH_KEY_KEY_VAR_HIGH = (0x27); /* // 128-bit proc_inx_data in big-endian format, set this paramter if using Customer Key Select */ static const uint8_t FLASH_PROC_IN1_DATA[] = {0xa1, 0x7d, 0xdc, 0xab, 0xb2, 0x3b, 0x6d, 0xf4, 0x1c, 0xa9, 0x36, 0x98, 0x84, 0x5b, 0x97, 0x19}; static const uint8_t FLASH_PROC_IN2_DATA[] = {0x22, 0x65, 0x14, 0x43, 0xca, 0xf7, 0xfa, 0xd8, 0x04, 0x64, 0x2c, 0x5a, 0x52, 0x91, 0xe1, 0x11}; #endif void Initialize_KeySlot(void); void Finalize_KeySlot(void); NEXUS_Error keyladder_crypto(uint8_t *pBuf, uint32_t size); #ifdef __cplusplus } #endif #endif