Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 13 additions & 1 deletion examples/platform/cert_store.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Certificate Store Platform Implementation
//!
Expand Down
14 changes: 13 additions & 1 deletion examples/platform/certs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Static X.509 certificates for SPDM platform implementations
//!
Expand Down
14 changes: 13 additions & 1 deletion examples/platform/crypto.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Cryptographic Platform Implementation
//!
Expand Down
14 changes: 13 additions & 1 deletion examples/platform/evidence.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Evidence Platform Implementation
//!
Expand Down
14 changes: 13 additions & 1 deletion examples/platform/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Platform implementations for SPDM examples
//!
Expand Down
14 changes: 13 additions & 1 deletion examples/platform/socket_transport.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Socket Transport Platform Implementation
//!
Expand Down
14 changes: 13 additions & 1 deletion examples/spdm_requester.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! SPDM Example Responder utilizing the requester library.

Expand Down
14 changes: 13 additions & 1 deletion examples/spdm_responder.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Real SPDM Library Integrated DMTF Compatible Responder
//!
Expand Down
14 changes: 13 additions & 1 deletion src/cert_store.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::error::{SpdmError, SpdmResult};
use crate::protocol::algorithms::{AsymAlgo, ECC_P384_SIGNATURE_SIZE, SHA384_HASH_SIZE};
Expand Down
14 changes: 13 additions & 1 deletion src/chunk_ctx.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::commands::measurements_rsp::MeasurementsResponse;

Expand Down
14 changes: 13 additions & 1 deletion src/codec.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use zerocopy::{FromBytes, Immutable, IntoBytes};

Expand Down
14 changes: 13 additions & 1 deletion src/commands/algorithms/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Commands related to SPDM Algorithms negotiation
//! See DMTF 0274 - SPDM Base Specification v1.3, Section 10.4 ff.
Expand Down
14 changes: 13 additions & 1 deletion src/commands/algorithms/request.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::{
codec::{Codec, MessageBuf},
Expand Down
14 changes: 13 additions & 1 deletion src/commands/algorithms/response.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::{
codec::{Codec, MessageBuf},
Expand Down
14 changes: 13 additions & 1 deletion src/commands/capabilities/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod request;
pub mod response;
Expand Down
14 changes: 13 additions & 1 deletion src/commands/capabilities/request.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::commands::error_rsp::ErrorCode;
use crate::protocol::CapabilityFlags;
Expand Down
14 changes: 13 additions & 1 deletion src/commands/capabilities/response.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use super::*;
use crate::codec::{Codec, MessageBuf};
use crate::commands::error_rsp::ErrorCode;
Expand Down
14 changes: 13 additions & 1 deletion src/commands/certificate/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod request;
pub mod response;
Expand Down
14 changes: 13 additions & 1 deletion src/commands/certificate/request.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::codec::{Codec, MessageBuf};
use crate::commands::certificate::{
Expand Down
14 changes: 13 additions & 1 deletion src/commands/certificate/response.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::cert_store::{cert_slot_mask, MAX_CERT_SLOTS_SUPPORTED};
use crate::codec::{Codec, MessageBuf};
Expand Down
14 changes: 13 additions & 1 deletion src/commands/challenge/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::codec::CommonCodec;
use crate::protocol::SHA384_HASH_SIZE;
Expand Down
14 changes: 13 additions & 1 deletion src/commands/challenge/request.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Licensed under the Apache-2.0 license
// Copyright 2025
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::codec::{encode_u8_slice, Codec, MessageBuf};
use crate::commands::challenge::{
ChallengeAuthRspBase, ChallengeReq, MeasurementSummaryHashType, CONTEXT_LEN, NONCE_LEN,
Expand Down
Loading
Loading