versions
- C
- C++
- CSharp
- Java
- JavaScript
- Swift
- Python
- Go
- PHP
// Get version of MTE we are using.
const char* mte_version = mte_base_version();
printf("%s\n", mte_version);
// There are macros available when including
// the header "mte_version.h"
// Get version of MTE in a char pointer.
const char* version = MTE_VERSION;
printf("%s\n", version);
// Get MTE major version number as an integer.
int mte_major_version = MTE_VERSION_MAJOR;
printf("%d\n", mte_major_version);
// Get MTE minor version number as an integer
int mte_minor_version = MTE_VERSION_MINOR;
printf("%d\n", mte_minor_version);
// Get MTE patch version number as an integer
int mte_patch_version = MTE_VERSION_PATCH;
printf("%d\n", mte_patch_version);
// Get version of MTE we are using.
const char* mteVersion = MteBase::getVersion();
std::cout << mteVersion << std::endl;
// Get MTE major version number as size_t.
const size_t mteMajorVersion = MteBase::getVersionMajor();
std::cout << mteMajorVersion << std::endl;
// Get MTE minor version number as size_t.
const size_t mteMinorVersion = MteBase::getVersionMinor();
std::cout << mteMinorVersion << std::endl;
// Get MTE patch version number as size_t.
const size_t mtePatchVersion = MteBase::getVersionPatch();
std::cout << mtePatchVersion << std::endl;
// Create encoder or decoder as shown above
// Get version of MTE in a string
string mteVersion = mteEncoder.GetVersion();
// Get Mte major version number as an integer
int mteMajorVersion = mteEncoder.GetVersionMajor();
// Get MTE minor version number as an integer
int mteMinorVersion = mteEncoder.GetVersionMinor();
// Get MTE patch version number as an integer
int mtePatchVersion = mteEncoder.GetVersionPatch();
// Log MTE Version
logger.LogDebug($"MTE version is {mteMajorVersion}.{mteMinorVersion}.{mtePatchVersion}");
// Get version of MTE we are using
String mteVersion = MteBase.getVersion();
// Get Mte major version number as an integer
int mteMajorVersion = MteBase.getVersionMajor();
// Get MTE minor version number as an integer
int mteMinorVersion = MteBase.getVersionMinor();
// Get MTE patch version number as an integer
int mtePatchVersion = MteBase.getVersionPatch();
// Log MTE Major version
System.out.print("MTE version is " + mteMajorVersion + "." + mteMinorVersion + "." + mtePatchVersion);
import { MteWasm, MteBase, MteDrbgs } from "mte-wasm-browser";
// instantiate wasm
const mteWasm = new MteWasm();
await mteWasm.instantiate();
// create instance of MteBase
const mteBase = new MteBase(mteWasm, MteDrbgs.mte_drbgs_none);
// log MTE version
const version = mteBase.getVersion();
console.log(`MTE Version is: ${version}`);
// Log MTE major version
const major = mteBase.getVersionMajor();
console.log(major);
// Log MTE minor version
const minor = mteBase.getVersionMinor();
console.log(minor);
// Log MTE patch version
const patch = mteBase.getVersionPatch();
console.log(patch);
// Get version of MTE we are using
let mteVersion: String = MteBase.getVersion()
print(mteVersion)
// Get Mte major version number as an integer
let mteMajorVersion: Int = MteBase.getVersionMajor()
print(mteMajorVersion)
// Get MTE minor version number as an integer
let mteMinorVersion: Int = MteBase.getVersionMinor()
print(mteMinorVersion)
// Get MTE patch version number as an integer
let mtePatchVersion: Int = MteBase.getVersionPatch()
print(mtePatchVersion)
# Get version of MTE in a string.
mte_version = MteBase.get_version()
# Get Mte major version number as an integer.
mte_major_version = MteBase.get_version_major()
# Get Mte minor version number as an integer.
mte_minor_version = MteBase.get_version_minor()
# Get Mte patch version number as an integer.
mte_patch_version = MteBase.get_version_patch()
// Get MTE version
mteVersion := mte.GetVersion()
// Get MTE major version number
mteMajorVersion := mte.GetVersionMajor()
// Get MTE minor version number
mteMinorVersion := mte.GetVersionMinor()
// Get MTE patch version number
mtePatchVersion := mte.GetVersionPatch()
// print out MTE version
fmt.Printf("Using MTE Version %s\n", mteVersion)
<?php
$version = mte_get_version();
$major = mte_get_version_major();
$minor = mte_get_version_minor();
$patch = mte_get_version_patch();
echo "MTE Version: " .$version. " ";
echo "MTE Major: " .$major. " ";
echo "MTE Minor: " .$minor. " ";
echo "MTE Patch: " .$patch. " ";
?>