Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

39 lines
921 B
C

/*
* S390 certificate store
*
* Copyright 2025 IBM Corp.
* Author(s): Zhuoying Cai <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_S390_CERT_STORE_H
#define HW_S390_CERT_STORE_H
#include "hw/s390x/ipl/qipl.h"
#include "hw/s390x/ipl/diag320.h"
#include "crypto/x509-utils.h"
#define CERT_KEY_ID_LEN QCRYPTO_HASH_DIGEST_LEN_SHA256
#define CERT_HASH_LEN QCRYPTO_HASH_DIGEST_LEN_SHA256
struct S390IPLCertificate {
uint8_t name[CERT_NAME_MAX_LEN];
size_t size;
size_t der_size;
uint8_t *raw;
};
typedef struct S390IPLCertificate S390IPLCertificate;
struct S390IPLCertificateStore {
uint16_t count;
size_t largest_cert_size;
size_t total_bytes;
S390IPLCertificate certs[MAX_CERTIFICATES];
};
typedef struct S390IPLCertificateStore S390IPLCertificateStore;
void s390_ipl_create_cert_store(S390IPLCertificateStore *cert_store);
#endif