blob: 05c8e3ace7cab7d0282cd39da3297075d032daff [file]
// 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 "quiche/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