CCF
Loading...
Searching...
No Matches
public_key.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include <cstdint>
6#include <string>
7#include <vector>
8
9namespace ccf::crypto
10{
11 // Returns a hex-encoded SHA-256 hash of the DER-encoded public key,
12 // suitable for use as a key identifier (kid).
13 std::string kid_from_key(const std::vector<uint8_t>& public_key_der);
14}
Definition base64.h:11
std::string kid_from_key(const std::vector< uint8_t > &public_key_der)
Definition public_key.cpp:10