setup
- C
- C++
- CSharp
- Java
- JavaScript
- Swift
- Python
- Go
- PHP
//--------------------------------------------------------
// Add the path to the "include" directory of the SDK in the
// header search path.
// Each header file needed will neet to be referenced.
//--------------------------------------------------------
#include "mte_base.h"
#include "mte_status.h"
#include "mte_enc.h"
#include "mte_dec.h"
// Include the following relevant headers if using the MKE add-on.
#include "mte_mke_enc.h"
#include "mte_mke_dec.h"
// Include the following relevant header if using the FLEN add-on.
#include "mte_flen_enc.h"
#include "MteBase.h"
#include "mte_status.h"
#include "MteEnc.h"
#include "MteDec.h"
// Include the following relevant headers if using the MKE add-on.
#include "MteMkeEnc.h"
#include "MteMkeDec.h"
// Include the following relevant header if using the FLEN add-on.
#include "MteFlenEnc.h"
//----------------------------------------------------------------------
// There are two different options when setting up the MTE in CSharp
//----------------------------------------------------------------------
// Both of the following options require that the native library
// is also included in the solution
//----------------------------------------------------------------------
//-----------
// Option 1
//-----------
//-------------------------------------------------------------
// Include the Eclypses.MTE.Core NuGet package in the solution
//-------------------------------------------------------------
// Ensure each page where the MTE is referenced has this
using Eclypses.MTE;
//-----------
// Option 2
//-----------
//----------------------------------------------------------------
// Include ALL files found inside the MTE archive folder "/src/cs/"
//----------------------------------------------------------------
// Ensure each page where the MTE is referenced has this
using Eclypses.MTE;
//--------------------------------------------------------
// Include the "com.eclypses.mte" package in the solution
// This can be found in the MTE archive folder "src/java"
//--------------------------------------------------------
// The solution must also include a path to the native
// library itself in the Build Path configuration
//--------------------------------------------------------
// Each page that references the MTE must have the following
//--------------------------------------------------------
import com.eclypses.mte.*;
// import the entire MTE library
import MTELib from "mte-wasm-browser";
// OR, import individual modules
import { MteWasm, MteBase, MteEnc, MteDec } from "mte-wasm-browser";
/*
This is a template bridging header that contains all necessary header
includes. If your project has an existing bridging header, you can copy
the relevant includes to that header. If your project does not have a
bridging header, you can uncomment the relevant lines and use this file
directly.
Note that the headers listed here include other headers, so the entire SDK
include directory should be kept in tact. Directly including these is enough
to get the associated Swift classes to build. You should uncomment only the
includes associated with the classes you need, and only include the classes
you really need in your project. There is a derivation chain, so you need to
include all base classes in your project as well.
*/
// Base (MteBase) includes. These are required to use any part of MTE.
#include "mte_init.h"
#include "mte_license.h"
#include "mte_version.h"
#include "mte_base.h"
#include "mte_wrap_base.h"
// Core decoder (MteDec).
#include "mte_dec.h"
#include "mte_wrap_dec.h"
// Core encoder (MteEnc).
#include "mte_enc.h"
#include "mte_wrap_enc.h"
// Fixed-Length Add-On encoder (MteFlenEnc).
#include "mte_flen_enc.h"
#include "mte_wrap_flen_enc.h"
// Managed-Key Encryption Add-On decoder (MteMkeDec).
#include "mte_mke_dec.h"
#include "mte_wrap_mke_dec.h"
// Managed-Key Encryption Add-On encoder (MteMkeEnc).
#include "mte_mke_enc.h"
#include "mte_wrap_mke_enc.h"
# Initialize MTE Core libraries.
from MteBase import MteBase
from MteStatus import MteStatus
from MteEnc import MteEnc
from MteDec import MteDec
from MteDrbgs import MteDrbgs
from MteVerifiers import MteVerifiers
from MteHashes import MteHashes
from MteCiphers import MteCiphers
# Import the following relevant libraries if you are using the MKE or FLEN add-ons.
from MteMkeEnc import MteMkeEnc
from MteMkeDec import MteMkeDec
from MteFlenEnc import MteFlenEnc
/*
Create a directory named "mte" in the main directory.
Add the contents of the “src/go” directory from the
mte-Windows package or mte-Linux package into the newly
created mte directory.
Add the corresponding "lib" directory and contents
to the mte directory as well.
Add the following to the import statement at the top of the file
where you need to use the MTE
*"moduleName" is the name of your go module
*/
import (
"moduleName/mte"
)
//--------------------------------------------------------
// The mtephp Extension must be installed on your version
// of PHP. PHP7 and PHP8 are supported.
//
// For instructions on how to install the mtephp
// extension please see PHP Extension ReadMe File
//--------------------------------------------------------