HomeSort by relevance Sort by last modified time
    Searched refs:omac (Results 1 - 11 of 11) sorted by null

  /external/dropbear/libtomcrypt/src/mac/omac/
omac_done.c 21 Terminate an OMAC stream
22 @param omac The OMAC state
27 int omac_done(omac_state *omac, unsigned char *out, unsigned long *outlen)
32 LTC_ARGCHK(omac != NULL);
35 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) {
39 if ((omac->buflen > (int)sizeof(omac->block)) || (omac->buflen < 0) ||
40 (omac->blklen > (int)sizeof(omac->block)) || (omac->buflen > omac->blklen))
    [all...]
omac_process.c 22 Process data through OMAC
23 @param omac The OMAC state
24 @param in The input data to send through OMAC
28 int omac_process(omac_state *omac, const unsigned char *in, unsigned long inlen)
33 LTC_ARGCHK(omac != NULL);
35 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) {
39 if ((omac->buflen > (int)sizeof(omac->block)) || (omac->buflen < 0) |
    [all...]
omac_init.c 22 Initialize an OMAC state
23 @param omac The OMAC state to initialize
29 int omac_init(omac_state *omac, int cipher, const unsigned char *key, unsigned long keylen)
33 LTC_ARGCHK(omac != NULL);
58 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &omac->key)) != CRYPT_OK) {
65 zeromem(omac->Lu[0], cipher_descriptor[cipher].block_length);
66 if ((err = cipher_descriptor[cipher].ecb_encrypt(omac->Lu[0], omac->Lu[0], &omac->key)) != CRYPT_OK)
    [all...]
omac_memory.c 21 OMAC a block of memory
25 @param in The data to send through OMAC
26 @param inlen The length of the data to send through OMAC (octets)
37 omac_state *omac; local
54 /* allocate ram for omac state */
55 omac = XMALLOC(sizeof(omac_state));
56 if (omac == NULL) {
60 /* omac process the message */
61 if ((err = omac_init(omac, cipher, key, keylen)) != CRYPT_OK) {
64 if ((err = omac_process(omac, in, inlen)) != CRYPT_OK)
    [all...]
omac_memory_multi.c 22 OMAC multiple blocks of memory
28 @param in The data to send through OMAC
29 @param inlen The length of the data to send through OMAC (octets)
30 @param ... tuples of (data,len) pairs to OMAC, terminated with a (NULL,x) (x=don't care)
39 omac_state *omac; local
49 /* allocate ram for omac state */
50 omac = XMALLOC(sizeof(omac_state));
51 if (omac == NULL) {
55 /* omac process the message */
56 if ((err = omac_init(omac, cipher, key, keylen)) != CRYPT_OK)
    [all...]
omac_file.c 21 OMAC a file
25 @param filename The name of the file you wish to OMAC
39 omac_state omac;
53 if ((err = omac_init(&omac, cipher, key, keylen)) != CRYPT_OK) {
60 if ((err = omac_process(&omac, buf, x)) != CRYPT_OK) {
67 if ((err = omac_done(&omac, out, outlen)) != CRYPT_OK) {
81 /* $Source: /cvs/libtom/libtomcrypt/src/mac/omac/omac_file.c,v $ */
  /external/dropbear/libtomcrypt/src/encauth/eax/
eax_init.c 39 omac_state *omac; local
57 omac = XMALLOC(sizeof(*omac));
59 if (buf == NULL || omac == NULL) {
63 if (omac != NULL) {
64 XFREE(omac);
71 if ((err = omac_init(omac, cipher, key, keylen)) != CRYPT_OK) {
75 /* omac the [0]_n */
76 if ((err = omac_process(omac, buf, blklen)) != CRYPT_OK) {
79 /* omac the nonce *
    [all...]
  /external/dropbear/libtomcrypt/
Android.mk 33 src/mac/omac/omac_done.c src/mac/omac/omac_file.c src/mac/omac/omac_init.c src/mac/omac/omac_memory.c \
34 src/mac/omac/omac_memory_multi.c src/mac/omac/omac_process.c src/mac/omac/omac_test.c \
crypt.tex 648 as EAX, PMAC and OMAC only require the encryption function. So far this \textit{encrypt only} functionality has only been implemented for
    [all...]
  /external/dropbear/libtomcrypt/src/headers/
tomcrypt_mac.h 38 int omac_init(omac_state *omac, int cipher, const unsigned char *key, unsigned long keylen);
39 int omac_process(omac_state *omac, const unsigned char *in, unsigned long inlen);
40 int omac_done(omac_state *omac, unsigned char *out, unsigned long *outlen);
54 #endif /* OMAC */
102 #error EAX_MODE requires OMAC and CTR
  /external/dropbear/
configure     [all...]

Completed in 1972 milliseconds