blob: 7bc181641c321550b823c5c0420f02910f622a07 [file]
/*
*
* Copyright (c) 2026 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <cstddef>
#include <cstdint>
namespace chip {
namespace Dnssd {
namespace Uld {
// DNSKEY RR / SIG algorithm ECDSA P-256 with SHA-256 (RFC 6605).
inline constexpr uint8_t kKeyAlgorithmEcdsaP256 = 13;
// Raw P-256 public key size in KEY RDATA (X || Y, no 0x04 prefix).
inline constexpr size_t kP256RawPublicKeySize = 64;
// Raw P-256 ECDSA signature size in SIG(0) RDATA (r || s).
inline constexpr size_t kP256RawSignatureSize = 64;
} // namespace Uld
} // namespace Dnssd
} // namespace chip