Coda Distributed File System
Macros | Functions
grunt.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdint.h>
#include <stdio.h>
#include "aes.h"
Include dependency graph for grunt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define bytes(bits)   ((bits) / 8)
 
#define aes_xcbc_prf_release   aes_xcbc_mac_release
 
#define aes_xcbc_prf_128   aes_xcbc_mac_128
 

Functions

void secure_aes_init (int verbose)
 
int aes_cbc_encrypt (const aes_block *in, aes_block *out, size_t nblocks, const aes_block *iv, aes_encrypt_ctx *ctx)
 
int aes_cbc_decrypt (const aes_block *in, aes_block *out, size_t nblocks, const aes_block *iv, aes_decrypt_ctx *ctx)
 
int aes_xcbc_prf_init (void **ctx, const uint8_t *key, size_t len)
 
int aes_xcbc_mac_init (void **ctx, const uint8_t *key, size_t len)
 
void aes_xcbc_mac_release (void **ctx)
 
void aes_xcbc_mac_128 (void *ctx, const uint8_t *buf, size_t len, aes_block *mac)
 
void secure_random_init (int verbose)
 
void secure_random_release (void)
 
void secure_audit (const char *event, uint32_t spi, uint32_t seq, const struct sockaddr *src)
 
void aes_ccm_tweak (void *ctx, uint32_t version)
 
void secure_pbkdf_init (int verbose)
 

Macro Definition Documentation

◆ aes_xcbc_prf_128

#define aes_xcbc_prf_128   aes_xcbc_mac_128

◆ aes_xcbc_prf_release

#define aes_xcbc_prf_release   aes_xcbc_mac_release

◆ bytes

#define bytes (   bits)    ((bits) / 8)

Function Documentation

◆ aes_cbc_decrypt()

int aes_cbc_decrypt ( const aes_block in,
aes_block out,
size_t  nblocks,
const aes_block iv,
aes_decrypt_ctx ctx 
)

◆ aes_cbc_encrypt()

int aes_cbc_encrypt ( const aes_block in,
aes_block out,
size_t  nblocks,
const aes_block iv,
aes_encrypt_ctx ctx 
)

◆ aes_ccm_tweak()

void aes_ccm_tweak ( void *  ctx,
uint32_t  version 
)

◆ aes_xcbc_mac_128()

void aes_xcbc_mac_128 ( void *  ctx,
const uint8_t buf,
size_t  len,
aes_block mac 
)

◆ aes_xcbc_mac_init()

int aes_xcbc_mac_init ( void **  ctx,
const uint8_t key,
size_t  len 
)

◆ aes_xcbc_mac_release()

void aes_xcbc_mac_release ( void **  ctx)

◆ aes_xcbc_prf_init()

int aes_xcbc_prf_init ( void **  ctx,
const uint8_t key,
size_t  len 
)

◆ secure_aes_init()

void secure_aes_init ( int  verbose)

◆ secure_audit()

void secure_audit ( const char *  event,
uint32_t  spi,
uint32_t  seq,
const struct sockaddr *  src 
)

◆ secure_pbkdf_init()

void secure_pbkdf_init ( int  verbose)

◆ secure_random_init()

void secure_random_init ( int  verbose)

◆ secure_random_release()

void secure_random_release ( void  )