naiveproxy/services/network/public/mojom/digitally_signed.mojom

31 lines
767 B
Plaintext
Raw Normal View History

2018-12-10 05:59:24 +03:00
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module network.mojom;
// Mirror of net::ct::DigitallySigned::HashAlgorithm
enum HashAlgorithm {
HASH_ALGO_NONE = 0,
HASH_ALGO_MD5 = 1,
HASH_ALGO_SHA1 = 2,
HASH_ALGO_SHA224 = 3,
HASH_ALGO_SHA256 = 4,
HASH_ALGO_SHA384 = 5,
HASH_ALGO_SHA512 = 6
};
// Mirror of net::ct::DigitallySigned::SignatureAlgorithm
enum SignatureAlgorithm {
SIG_ALGO_ANONYMOUS = 0,
SIG_ALGO_RSA = 1,
SIG_ALGO_DSA = 2,
SIG_ALGO_ECDSA = 3
};
// Mirror of net::ct::DigitallySigned
struct DigitallySigned {
HashAlgorithm hash_algorithm;
SignatureAlgorithm signature_algorithm;
array<uint8> signature;
};