Memclave Artifact Documentation
Loading...
Searching...
No Matches
vud_sk.h
Go to the documentation of this file.
1#ifndef VUD_SK_H
2#define VUD_SK_H
3
4#include "vud.h"
5#include "vud_mem.h"
6
7#include <stddef.h>
8#include <stdint.h>
9
24long vud_sk_from_elf(const char* path, size_t sz, uint64_t* out, bool auth_only);
25
32int vud_enc_auth_sk(uint64_t* sk, const uint8_t* key);
33
42vud_error vud_get_symbol(const char *binary, const char *symb,
43 vud_mram_addr *out_addr);
44
45#endif
vud_error
Definition vud.h:13
const char * path
Definition vud_ime.h:20
uint32_t vud_mram_addr
Definition vud_mem.h:8
int vud_enc_auth_sk(uint64_t *sk, const uint8_t *key)
encrypt the passed in subkernel under key - leave only header as AD
vud_error vud_get_symbol(const char *binary, const char *symb, vud_mram_addr *out_addr)
lookup the location of a symbol in MRAM based on the subkernel ELF file
long vud_sk_from_elf(const char *path, size_t sz, uint64_t *out, bool auth_only)
load an elf file and convert it into subkernel format