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

/darwin-on-arm/xnu/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...]
/darwin-on-arm/xnu/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 */
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/
H A Dccpad.h58 void ccpad_xts_decrypt(const struct ccmode_xts *xts, ccxts_ctx *ctx,
62 void ccpad_xts_encrypt(const struct ccmode_xts *xts, ccxts_ctx *ctx,
H A Dccmode_factory.h67 static struct ccmode_xts xts##_cipher_##_##_dir_; \
74 ccmode_factory_xts_##_dir_(&xts##_cipher_##_##_dir_, ecb, ecb_enc); \
75 return &xts##_cipher_##_##_dir_; \
505 void ccmode_xts_init(const struct ccmode_xts *xts, ccxts_ctx *ctx,
531 .xts = ccmode_xts_crypt, \
542 .xts = ccmode_xts_crypt, \
552 void ccmode_factory_xts_decrypt(struct ccmode_xts *xts, argument
556 *xts = xts_decrypt;
564 void ccmode_factory_xts_encrypt(struct ccmode_xts *xts, argument
568 *xts
[all...]
H A Dccmode_impl.h113 /* Create a xts key from a xts mode object. The tweak_len here
115 ccmode_xts->xts().
118 void (*init)(const struct ccmode_xts *xts, ccxts_ctx *ctx,
127 void *(*xts)(const ccxts_ctx *ctx, ccxts_tweak *tweak, unsigned long nblocks, 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 struct ccmode_xts
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
342 return mode->xts(ctx, tweak, in_len, in, out);
354 mode->xts(ctx, tweak, in_len, in, out);

Completed in 39 milliseconds