Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <plat/arm/common/plat_arm.h> |
| 8 | |
| 9 | /* |
| 10 | * Return the ROTPK hash in the following ASN.1 structure in DER format: |
| 11 | * |
| 12 | * AlgorithmIdentifier ::= SEQUENCE { |
| 13 | * algorithm OBJECT IDENTIFIER, |
| 14 | * parameters ANY DEFINED BY algorithm OPTIONAL |
| 15 | * } |
| 16 | * |
| 17 | * DigestInfo ::= SEQUENCE { |
| 18 | * digestAlgorithm AlgorithmIdentifier, |
| 19 | * digest OCTET STRING |
| 20 | * } |
| 21 | */ |
| 22 | int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, |
| 23 | unsigned int *flags) |
| 24 | { |
Sandrine Bailleux | 7b7a41c | 2020-02-06 14:34:44 +0100 | [diff] [blame] | 25 | return arm_get_rotpk_info(cookie, key_ptr, key_len, flags); |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 26 | } |