naiveproxy/services/network/public/mojom/digitally_signed.mojom
2018-08-11 05:35:24 +00:00

31 lines
767 B
Plaintext

// 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;
};