Browse Source
* changes: plat/arm/rddanielxlr: add platform function to return ROTPK plat/arm/rddaniel: add platform function to return ROTPKpull/1979/head
Manish Pandey
4 years ago
committed by
TrustedFirmware Code Review
4 changed files with 62 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
/*
|
|||
* Copyright (c) 2020, Arm Limited. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#include <plat/arm/common/plat_arm.h> |
|||
|
|||
/*
|
|||
* Return the ROTPK hash in the following ASN.1 structure in DER format: |
|||
* |
|||
* AlgorithmIdentifier ::= SEQUENCE { |
|||
* algorithm OBJECT IDENTIFIER, |
|||
* parameters ANY DEFINED BY algorithm OPTIONAL |
|||
* } |
|||
* |
|||
* DigestInfo ::= SEQUENCE { |
|||
* digestAlgorithm AlgorithmIdentifier, |
|||
* digest OCTET STRING |
|||
* } |
|||
*/ |
|||
int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, |
|||
unsigned int *flags) |
|||
{ |
|||
return arm_get_rotpk_info(cookie, key_ptr, key_len, flags); |
|||
} |
@ -0,0 +1,26 @@ |
|||
/*
|
|||
* Copyright (c) 2020, Arm Limited. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#include <plat/arm/common/plat_arm.h> |
|||
|
|||
/*
|
|||
* Return the ROTPK hash in the following ASN.1 structure in DER format: |
|||
* |
|||
* AlgorithmIdentifier ::= SEQUENCE { |
|||
* algorithm OBJECT IDENTIFIER, |
|||
* parameters ANY DEFINED BY algorithm OPTIONAL |
|||
* } |
|||
* |
|||
* DigestInfo ::= SEQUENCE { |
|||
* digestAlgorithm AlgorithmIdentifier, |
|||
* digest OCTET STRING |
|||
* } |
|||
*/ |
|||
int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, |
|||
unsigned int *flags) |
|||
{ |
|||
return arm_get_rotpk_info(cookie, key_ptr, key_len, flags); |
|||
} |
Loading…
Reference in new issue