EgretDoc
Back to Home
Location:system/crypto.aes

Module

Module documentation.

modulecrypto.aes

Classes

Classes and inheritance.

Functions

Free functions and class methods.

functioncrypto.aes::__aes128_ecb_encrypt_hex
Signatureextern func __aes128_ecb_encrypt_hex(key_hex: String, pt_hex: String) -> String;
extern func __aes128_ecb_encrypt_hex(key_hex: String, pt_hex: String) -> String;
/*
@brief Binds the low-level runtime symbol `__aes128_ecb_decrypt_hex`.
@briefBinds the low-level runtime symbol `__aes128_ecb_encrypt_hex`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • pt_hexHex-encoded plaintext input or output.
@returnReturns the operation result as `String`.
functioncrypto.aes::__aes128_ecb_decrypt_hex
Signatureextern func __aes128_ecb_decrypt_hex(key_hex: String, ct_hex: String) -> String;
extern func __aes128_ecb_decrypt_hex(key_hex: String, ct_hex: String) -> String;
/*
@brief Binds the low-level runtime symbol `__aes128_ecb_encrypt_bytes`.
@briefBinds the low-level runtime symbol `__aes128_ecb_decrypt_hex`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • ct_hexHex-encoded ciphertext input or output.
@returnReturns the operation result as `String`.
functioncrypto.aes::__aes128_ecb_encrypt_bytes
Signatureextern func __aes128_ecb_encrypt_bytes(key_hex: String, plain: String) -> String;
extern func __aes128_ecb_encrypt_bytes(key_hex: String, plain: String) -> String;
/*
@brief Binds the low-level runtime symbol `__aes128_ecb_decrypt_bytes`.
@briefBinds the low-level runtime symbol `__aes128_ecb_encrypt_bytes`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • plainPlain-text input or decoded value before encryption, hashing, or encoding.
@returnReturns the operation result as `String`.
functioncrypto.aes::__aes128_ecb_decrypt_bytes
Signatureextern func __aes128_ecb_decrypt_bytes(key_hex: String, cipher: String) -> String;
extern func __aes128_ecb_decrypt_bytes(key_hex: String, cipher: String) -> String;

/*
@briefBinds the low-level runtime symbol `__aes128_ecb_decrypt_bytes`.
@detailsThis function is an external entry point used by system modules to access native runtime capabilities such as filesystem, networking, threading, GC, cryptography, or platform operations. Prefer the safe wrapper functions in the same file when available. When calling this entry directly, pass validated arguments that match the signature and handle failures according to the return-value convention.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • cipherCipher name or cipher object used for encryption or decryption.
@returnReturns the operation result as `String`.
functioncrypto.aes::encrypt_hex
Signaturefunc encrypt_hex(key_hex: String, plaintext_hex: String) -> String
func encrypt_hex(key_hex: String, plaintext_hex: String) -> String {
    return __aes128_ecb_encrypt_hex(key_hex, plaintext_hex);
}
@briefProvides the system library operation `encrypt_hex`.
@detailsExecutes the `encrypt_hex` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • plaintext_hexHex-encoded plaintext input for encryption or test vectors.
@returnReturns the operation result as `String`.
functioncrypto.aes::decrypt_hex
Signaturefunc decrypt_hex(key_hex: String, ciphertext_hex: String) -> String
func decrypt_hex(key_hex: String, ciphertext_hex: String) -> String {
    return __aes128_ecb_decrypt_hex(key_hex, ciphertext_hex);
}
@briefProvides the system library operation `decrypt_hex`.
@detailsExecutes the `decrypt_hex` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • ciphertext_hexHex-encoded ciphertext input for decryption or test vectors.
@returnReturns the operation result as `String`.
functioncrypto.aes::encrypt_bytes
Signaturefunc encrypt_bytes(key_hex: String, plain: String) -> String
func encrypt_bytes(key_hex: String, plain: String) -> String {
    return __aes128_ecb_encrypt_bytes(key_hex, plain);
}
@briefProvides the system library operation `encrypt_bytes`.
@detailsExecutes the `encrypt_bytes` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • plainPlain-text input or decoded value before encryption, hashing, or encoding.
@returnReturns the operation result as `String`.
functioncrypto.aes::decrypt_bytes
Signaturefunc decrypt_bytes(key_hex: String, cipher: String) -> String
func decrypt_bytes(key_hex: String, cipher: String) -> String {
    return __aes128_ecb_decrypt_bytes(key_hex, cipher);
}
@briefProvides the system library operation `decrypt_bytes`.
@detailsExecutes the `decrypt_bytes` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • key_hexHex-encoded key material used by the cryptographic operation.
  • cipherCipher name or cipher object used for encryption or decryption.
@returnReturns the operation result as `String`.

Variables

Class fields (var).