blob: 036f694699b5760e6a0b77ebd0ef6f773d4ad1a8 [file] [log] [blame]
// Copyright (c) 2019 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.
#include "net/third_party/quiche/src/quic/core/crypto/quic_crypter.h"
#include "absl/strings/string_view.h"
namespace quic {
bool QuicCrypter::SetNoncePrefixOrIV(const ParsedQuicVersion& version,
absl::string_view nonce_prefix_or_iv) {
if (version.UsesInitialObfuscators()) {
return SetIV(nonce_prefix_or_iv);
}
return SetNoncePrefix(nonce_prefix_or_iv);
}
} // namespace quic