Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/HomomorphicEncryptionProtobuf/ConversionHe.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024-2025 Apple Inc. and the Swift Homomorphic Encryption project authors
// Copyright 2024-2026 Apple Inc. and the Swift Homomorphic Encryption project authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -315,7 +315,7 @@ extension HeScheme {
/// - Returns: The converted protobuf object.
/// - Throws: Error upon unsupported object.
public static func proto() throws -> Apple_SwiftHomomorphicEncryption_V1_HeScheme {
if Self.self is Bfv<UInt32>.Type || self is Bfv<UInt64>.Type {
if cryptosystem == .bfv {
return .bfv
}
throw ConversionError.invalidScheme
Expand Down