blob: d41ce21f269e8735bbd152b3957b5545098a7e17 [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 "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