Searched refs:xts (Results 1 - 7 of 7) sorted by relevance

/xnu-2782.1.97/libkern/crypto/
H A Dcorecrypto_aesxts.c41 xts_start(uint32_t cipher __unused, // ignored - we're doing this for xts-aes only argument
44 const uint8_t *key2, int tweaklen __unused, // both keys are the same size for xts
47 symmetric_xts *xts)
58 panic("%s: xts mode not registered? enc=%p, dec=%p\n", __FUNCTION__, enc, dec);
61 if((enc->size>sizeof(xts->enc)) || (dec->size>sizeof(xts->dec)))
64 enc->init(enc, xts->enc, keylen, key1, key2);
65 dec->init(dec, xts->dec, keylen, key1, key2);
73 symmetric_xts *xts)
78 if(ptlen%16) panic("xts encryp
70 xts_encrypt(const uint8_t *pt, unsigned long ptlen, uint8_t *ct, const uint8_t *iv, symmetric_xts *xts) argument
86 xts_decrypt(const uint8_t *ct, unsigned long ptlen, uint8_t *pt, const uint8_t *iv, symmetric_xts *xts) argument
[all...]
/xnu-2782.1.97/libkern/libkern/crypto/
H A Daesxts.h56 xts_start(uint32_t cipher, // ignored - we're doing this for xts-aes only
59 const uint8_t *key2, int tweaklen, // both keys are the same size for xts
62 symmetric_xts *xts);
67 symmetric_xts *xts);
72 symmetric_xts *xts);
74 void xts_done(symmetric_xts *xts);
H A Dregister_crypto.h76 typedef void (*ccpad_xts_decrypt_fn_t)(const struct ccmode_xts *xts, ccxts_ctx *ctx,
79 typedef void (*ccpad_xts_encrypt_fn_t)(const struct ccmode_xts *xts, ccxts_ctx *ctx,
103 /* AES, ecb, cbc and xts */
/xnu-2782.1.97/EXTERNAL_HEADERS/corecrypto/
H A Dccpad.h66 void ccpad_xts_decrypt(const struct ccmode_xts *xts, ccxts_ctx *ctx, ccxts_tweak *tweak,
70 void ccpad_xts_encrypt(const struct ccmode_xts *xts, ccxts_ctx *ctx, ccxts_tweak *tweak,
H A Dccmode_factory.h70 static struct ccmode_xts xts##_cipher_##_##_dir_; \
77 ccmode_factory_xts_##_dir_(&xts##_cipher_##_##_dir_, ecb, ecb_enc); \
78 return &xts##_cipher_##_##_dir_; \
601 void ccmode_xts_init(const struct ccmode_xts *xts, ccxts_ctx *ctx,
633 .xts = ccmode_xts_crypt, \
645 .xts = ccmode_xts_crypt, \
655 void ccmode_factory_xts_decrypt(struct ccmode_xts *xts, argument
659 *xts = xts_decrypt;
667 void ccmode_factory_xts_encrypt(struct ccmode_xts *xts, argument
671 *xts
[all...]
H A Dccmode_impl.h105 /* Create a xts key from a xts mode object. The tweak_len here
107 ccmode_xts->xts().
110 void (*init)(const struct ccmode_xts *xts, ccxts_ctx *ctx,
118 void *(*xts)(const ccxts_ctx *ctx, ccxts_tweak *tweak, member in struct:ccmode_xts
H A Dccmode.h295 /* Declare a xts key named _name_. Pass the size field of a struct ccmode_xts
300 /* Declare a xts tweak named _name_. Pass the tweak_size field of a
313 /* NOTE that xts mode does not do cts padding. It's really an xex mode.
315 functions. Also note that xts only works for ecb modes with a block_size
344 return mode->xts(ctx, tweak, nblocks, in, out);
356 mode->xts(ctx, tweak, nblocks, in, out);

Completed in 31 milliseconds