chromium/components/webcrypto/status.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/webcrypto/status.h"

#include "base/numerics/safe_conversions.h"
#include "base/strings/strcat.h"
#include "base/strings/stringprintf.h"

namespace webcrypto {

bool Status::IsError() const {}

bool Status::IsSuccess() const {}

Status Status::Success() {}

Status Status::SuccessDeriveBitsTruncation() {}

Status Status::OperationError() {}

Status Status::DataError() {}

Status Status::ErrorJwkNotDictionary() {}

Status Status::ErrorJwkMemberMissing(std::string_view member_name) {}

Status Status::ErrorJwkMemberWrongType(std::string_view member_name,
                                       std::string_view expected_type) {}

Status Status::ErrorJwkBase64Decode(std::string_view member_name) {}

Status Status::ErrorJwkExtInconsistent() {}

Status Status::ErrorJwkAlgorithmInconsistent() {}

Status Status::ErrorJwkUnrecognizedUse() {}

Status Status::ErrorJwkUnrecognizedKeyop() {}

Status Status::ErrorJwkUseInconsistent() {}

Status Status::ErrorJwkKeyopsInconsistent() {}

Status Status::ErrorJwkUseAndKeyopsInconsistent() {}

Status Status::ErrorJwkUnexpectedKty(std::string_view expected) {}

Status Status::ErrorJwkIncorrectKeyLength() {}

Status Status::ErrorJwkEmptyBigInteger(std::string_view member_name) {}

Status Status::ErrorJwkBigIntegerHasLeadingZero(std::string_view member_name) {}

Status Status::ErrorJwkDuplicateKeyOps() {}

Status Status::ErrorUnsupportedImportKeyFormat() {}

Status Status::ErrorUnsupportedExportKeyFormat() {}

Status Status::ErrorImportAesKeyLength() {}

Status Status::ErrorGetAesKeyLength() {}

Status Status::ErrorGenerateAesKeyLength() {}

Status Status::ErrorAes192BitUnsupported() {}

Status Status::ErrorUnexpectedKeyType() {}

Status Status::ErrorIncorrectSizeAesCbcIv() {}

Status Status::ErrorIncorrectSizeAesCtrCounter() {}

Status Status::ErrorInvalidAesCtrCounterLength() {}

Status Status::ErrorAesCtrInputTooLongCounterRepeated() {}

Status Status::ErrorImportEd25519KeyLength() {}

Status Status::ErrorX25519WrongAlgorithm() {}

Status Status::ErrorX25519PublicKeyWrongType() {}

Status Status::ErrorX25519PublicKeyWrongAlgorithm() {}

Status Status::ErrorImportX25519KeyLength() {}

Status Status::ErrorDataTooLarge() {}

Status Status::ErrorDataTooSmall() {}

Status Status::ErrorUnsupported() {}

Status Status::ErrorUnsupported(std::string_view message) {}

Status Status::ErrorUnexpected() {}

Status Status::ErrorInvalidAesGcmTagLength() {}

Status Status::ErrorInvalidAesKwDataLength() {}

Status Status::ErrorGenerateKeyPublicExponent() {}

Status Status::ErrorImportRsaEmptyModulus() {}

Status Status::ErrorGenerateRsaUnsupportedModulus() {}

Status Status::ErrorImportRsaEmptyExponent() {}

Status Status::ErrorKeyNotExtractable() {}

Status Status::ErrorGenerateHmacKeyLengthZero() {}

Status Status::ErrorHmacImportEmptyKey() {}

Status Status::ErrorGetHmacKeyLengthZero() {}

Status Status::ErrorHmacImportBadLength() {}

Status Status::ErrorCreateKeyBadUsages() {}

Status Status::ErrorCreateKeyEmptyUsages() {}

Status Status::ErrorImportedEcKeyIncorrectCurve() {}

Status Status::ErrorJwkIncorrectCrv() {}

Status Status::ErrorEcKeyInvalid() {}

Status Status::JwkOctetStringWrongLength(std::string_view member_name,
                                         size_t expected_length,
                                         size_t actual_length) {}

Status Status::ErrorEcdhPublicKeyWrongType() {}

Status Status::ErrorEcdhPublicKeyWrongAlgorithm() {}

Status Status::ErrorEcdhCurveMismatch() {}

Status Status::ErrorEcdhLengthTooBig(unsigned int max_length_bits) {}

Status Status::ErrorHkdfLengthTooLong() {}

Status Status::ErrorHkdfLengthNotWholeByte() {}

Status Status::ErrorHkdfDeriveBitsLengthNotSpecified() {}

Status Status::ErrorPbkdf2InvalidLength() {}

Status Status::ErrorPbkdf2DeriveBitsLengthNotSpecified() {}

Status Status::ErrorPbkdf2DeriveBitsLengthZero() {}

Status Status::ErrorPbkdf2Iterations0() {}

Status Status::ErrorImportExtractableKdfKey() {}

Status Status::ErrorX25519LengthTooLong() {}

Status::Status(blink::WebCryptoErrorType error_type,
               std::string_view error_details_utf8)
    :{}

Status::Status(Type type) :{}

}  // namespace webcrypto