mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 05:41:43 +00:00
df967c868b
- Plugins should be singletons across object instances * Added hard/soft initializer for r_crypto - Needed for the as_new() - Added stupid vala example for r_crypto vapi * Implement r_debug->mmu methods
15 lines
204 B
Vala
15 lines
204 B
Vala
using Radare;
|
|
|
|
void main()
|
|
{
|
|
Crypto cto = new Crypto();
|
|
|
|
cto.set_algorithm("aes");
|
|
int keysize = cto.get_key_size();
|
|
//cto.set_key();
|
|
//cto.set_iv();
|
|
|
|
/* dupplicate object */
|
|
cry = cto.as_new();
|
|
}
|