/usr/share/vala/vapi/r_crypto.vapi is in radare2-vala 0.9.6-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /* radare - LGPL - Copyright 2009 pancake<@nopcode.org> */
[CCode (cheader_filename="r_crypto.h", cprefix="r_crypto", lower_case_cprefix="r_crypto_")]
namespace Radare {
[Compact]
[CCode (cname="struct r_crypto_t", free_function="r_crypto_free", cprefix="r_crypto_")]
public class RCrypto {
[CCode (cprefix="R_CRYPTO_DIR")]
public enum Direction {
CIPHER,
UNCIPHER
}
[CCode (cprefix="R_CRYPTO_MODE")]
public enum Mode {
ECB,
CBC,
OFB,
CFB
}
public RCrypto();
public bool use(string algorithm);
// public bool set_key(uint8 *key, Crypto.Mode mode, Crypto.Direction direction);
public bool set_iv(uint8 *iv);
public int get_key_size();
public int update(uint8 *buf, int len);
public int final(uint8 *buf, int len);
public uint8* get_output();
}
}
|