Skip to content
Draft
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
3 changes: 2 additions & 1 deletion plugins/ossl_engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[workspace]
resolver = "2"
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/api-interface/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[package]
name = "api-interface"
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/api-interface/azihsm_engine.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#ifndef AZIHSM_API_INTERFACE_H
#define AZIHSM_API_INTERFACE_H
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/api-interface/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::env;
use std::path::Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! C-facing API for attesting key data

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! C-facing API for getting collateral data (device certificate chain)

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/api-interface/src/engine_ctrl/info.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copryright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::ffi::c_void;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! C-facing API for importing key data

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/api-interface/src/engine_ctrl/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod attest_key;
pub mod collateral;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::ffi::c_char;
use std::ffi::c_void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! C-facing API for wrapping key data

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/api-interface/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/engine-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[package]
name = "engine-common"
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/engine-common/src/handle_table.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::collections::HashMap;
use std::sync::atomic::*;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/engine-common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::mem::size_of;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (C) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[package]
name = "azihsmengine"
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/aes_cbc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/aes_gcm.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/aes_xts.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/callback.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use engine_common::handle_table::Handle;
use mcr_api_resilient::DigestKind;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/init.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::OnceLock;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use enum_as_inner::EnumAsInner;
use openssl_rust::safeapi::error::*;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ciphers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod aes_cbc;
#[cfg(feature = "gcm")]
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/base_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use engine_common::handle_table::Handle;
use engine_common::handle_table::HandleTable;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/ec_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/hash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::ffi::c_uint;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/hsm_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use api_interface::REPORT_DATA_SIZE;
use mcr_api_resilient::*;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/key_util.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
use mcr_api_resilient::ManticoreCertificate;

#[macro_export]
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod base_key;
pub mod ec_key;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/rsa_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::convert::TryFrom;
use std::ffi::c_uint;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/common/secret_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ec/callback.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::ffi::c_int;
use std::ffi::c_uchar;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ec/init.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use openssl_rust::safeapi::ec::method::EcKeyMethod;
use openssl_rust::safeapi::engine::Engine;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/ec/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod callback;
pub mod init;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/attest_key/ec_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/attest_key/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod ec_key;
pub mod evp_pkey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/delete_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_char;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/import_key/ec_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/import_key/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod ec_key;
pub mod evp_cipher;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/import_key/rsa.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/info.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/init.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use openssl_rust::safeapi::engine::Engine;
use openssl_rust::safeapi::engine_ctrl::EngineCtrlCmds;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod attest_key;
pub mod delete_key;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/unwrap_key/get.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::any::Any;
use std::ffi::c_long;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_ctrl/unwrap_key/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod get;
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_data.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use tracing::dispatcher::DefaultGuard;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/engine_internal.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::env::var_os;
use std::ffi::c_char;
Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/load_key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::ffi::c_void;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/pkey/ec/callback.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::ffi::c_int;

Expand Down
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/pkey/ec/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

pub mod callback;
3 changes: 2 additions & 1 deletion plugins/ossl_engine/lib/src/pkey/hkdf/callback.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (C) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use openssl_rust::safeapi::error::*;
use openssl_rust::safeapi::evp_pkey::callback::hkdf::*;
Expand Down
Loading