algorithm-name
- C
- C++
- CSharp
- Java
- Swift
- Python
- Go
- PHP
// Convert from char * to Algorithm.
enum mte_drbgs drbg = mte_base_drbgs_algo("mte_drbgs_ctr_aes128_df");
enum mte_verifiers verifier = mte_base_verifiers_algo("mte_verifiers_t64_crc32");
enum mte_hashes hash = mte_base_hashes_algo("mte_hashes_sha256");
enum mte_ciphers cipher = mte_base_ciphers_algo("mte_ciphers_aes256_ctr");
// Get Algorithm name in a char *.
const char* drbg_string_name = mte_base_drbgs_name(drbg);
const char* verifier_string_name = mte_base_verifiers_name(verifier);
const char* hash_string_name = mte_base_hashes_name(hash);
const char* cipher_string_name = mte_base_ciphers_name(cipher);
// Convert from char * to Algorithm.
mte_drbgs drbg = MteBase::getDrbgsAlgo("mte_drbgs_ctr_aes128_df");
mte_verifiers verifier = MteBase::getVerifiersAlgo("mte_verifiers_t64_crc32");
mte_hashes hash = MteBase::getHashesAlgo("mte_hashes_sha256");
mte_ciphers cipher = MteBase::getCiphersAlgo("mte_ciphers_aes256_ctr");
// Get Algorithm name in a char *.
const char* drbgStringName = MteBase::getDrbgsName(drbg);
const char* verifierStringName = MteBase::getVerifiersName(verifier);
const char* hashStringName = MteBase::getHashesName(hash);
const char* cipherStringName = MteBase::getCiphersName(cipher);
// Create default encoder or decoder
MteEnc mteEncoder = new MteEnc();
// Convert from string to Algorithm
MteDrbgs drbg = mteEncoder.GetDrbgsAlgo("mte_drbgs_ctr_aes128_df");
MteVerifiers verifier = mteEncoder.GetVerifiersAlgo("mte_verifiers_t64_crc32");
MteHashes hash = mteEncoder.GetHashesAlgo("mte_hashes_sha256");
MteCiphers cipher = mteEncoder.GetCiphersAlgo("mte_ciphers_aes256_ctr");
// Get Algorithm name in a string
string drbgStringName = mteEncoder.GetDrbgsName(drbg);
string verifierStringName = mteEncoder.GetVerifiersName(verifier);
string hashStringName = mteEncoder.GetHashesName(hash);
string cipherStringName = mteEncoder.GetCiphersName(cipher);
// Convert from string to Algorithm
MteDrbgs drbg = MteBase.getDrbgsAlgo("mte_drbgs_ctr_aes128_df");
MteVerifiers verifier = MteBase.getVerifiersAlgo("mte_verifiers_t64_crc32");
MteHashes hash = MteBase.getHashesAlgo("mte_hashes_sha256");
MteCiphers cipher = MteBase.getCiphersAlgo("mte_ciphers_aes256_ctr");
// Get Algorithm name in a string
String drbgStringName = MteBase.getDrbgsName(drbg);
String verifierStringName = MteBase.getVerifiersName(verifier);
String hashStringName = MteBase.getHashesName(hash);
String cipherStringName = MteBase.getCiphersName(cipher);
// Convert from the string name of a given algorithm to Algorithm object
let drbg: mte_drbg = MteBase.getDrbgsAlgo("mte_drbgs_ctr_aes128_df")
let verifier: mte_verifiers = MteBase.getVerifiersAlgo("mte_verifiers_t64_crc32")
let hash: mte_hashes = MteBase.getHashesAlgo("mte_hashes_sha256")
let cipher: mte_cipher = MteBase.getCiphersAlgo("mte_ciphers_aes256_ctr")
// Get Algorithm name in a string for a given algorithm
let drbgName: String = MteBase.getDrbgsName(drbg)
let verifiersName: String = MteBase.getVerifiersName(verifier)
let hashName: String = MteBase.getHashesName(hash)
let cipherName: String = MteBase.getCiphersName(cipher)
# Convert from string to Algorithm.
drbg = MteBase.get_drbgs_algo("mte_drbgs_ctr_aes128_df")
verifier = MteBase.get_verifiers_algo("mte_verifiers_t64_crc32")
hash = MteBase.get_hashes_algo("mte_hashes_sha256")
cipher = MteBase.get_ciphers_algo("mte_ciphers_aes256_ctr")
# Get Algorithm name in a string.
drbg_name = MteBase.get_drbgs_name(drbg)
verifiers_name = MteBase.get_verifiers_name(verifier)
hash_name = MteBase.get_hashes_name(hash)
cipher_name = MteBase.get_ciphers_name(cipher)
// Convert from the string name of an algorithm to Algorhtm object
drbg := mte.GetDrbgsAlgo("mte_drbgs_ctr_aes128_df")
verifier := mte.GetVerifiersAlgo("mte_verifiers_t64_crc32")
hash := mte.GetHashesAlgo("mte_hashes_sha256")
cipher := mte.GetCiphersAlgo("mte_ciphers_aes256_ctr")
// Get Algorithm name in a string for a given algorithm
drbgName := mte.GetDrbgsName(drbg)
verifierName := mte.GetVerifiersName(verifier)
hashName := mte.GetHashesName(hash)
cipherName := mte.GetCiphersName(cipher)
<?php
# Convert from string to Algorithm.
$drbg = MteBase.get_drbgs_algo("mte_drbgs_ctr_aes128_df")
$verifier = MteBase.get_verifiers_algo("mte_verifiers_t64_crc32")
$hash = MteBase.get_hashes_algo("mte_hashes_sha256")
$cipher = MteBase.get_ciphers_algo("mte_ciphers_aes256_ctr")
# Get Algorithm name in a string.
$drbg_name = MteBase.get_drbgs_name(constant($drbg))
$verifiers_name = MteBase.get_verifiers_name(constant($verifier))
$hash_name = MteBase.get_hashes_name(constant($hash))
$cipher_name = MteBase.get_ciphers_name(constant($cipher))
?>