Coda Distributed File System
|
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <rpc2/secure.h>
#include "aes.h"
#include "grunt.h"
Classes | |
struct | aes_ccm_ctx |
Macros | |
#define | AFLAG (1 << 6) /* do we have additional authenticated data */ |
#define | NONCELEN 11 /* fixed nonce size, 3 byte salt + 8 byte IV */ |
#define | PARM_L (AES_BLOCK_SIZE - 1 - NONCELEN) /* size of length field == 4 */ |
#define | CCMflags(len) ((((len / 2) - 1) << 3) | (PARM_L - 1)) |
Functions | |
void | aes_ccm_tweak (void *ctx, uint32_t version) |
Variables | |
struct secure_encr | secure_ENCR_AES_CCM_8 |
struct secure_encr | secure_ENCR_AES_CCM_12 |
struct secure_encr | secure_ENCR_AES_CCM_16 |
#define AFLAG (1 << 6) /* do we have additional authenticated data */ |
#define PARM_L (AES_BLOCK_SIZE - 1 - NONCELEN) /* size of length field == 4 */ |
void aes_ccm_tweak | ( | void * | ctx, |
uint32_t | version | ||
) |
struct secure_encr secure_ENCR_AES_CCM_12 |
struct secure_encr secure_ENCR_AES_CCM_16 |
struct secure_encr secure_ENCR_AES_CCM_8 |