Home
last modified time | relevance | path

Searched refs:xts_ctx (Results 1 – 1 of 1) sorted by relevance

/linux/arch/s390/crypto/
H A Daes_s390.c386 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm); in xts_fallback_setkey() local
388 crypto_skcipher_clear_flags(xts_ctx->fallback, CRYPTO_TFM_REQ_MASK); in xts_fallback_setkey()
389 crypto_skcipher_set_flags(xts_ctx->fallback, in xts_fallback_setkey()
392 return crypto_skcipher_setkey(xts_ctx->fallback, key, len); in xts_fallback_setkey()
398 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm); in xts_aes_set_key() local
411 xts_ctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; in xts_aes_set_key()
412 if (!xts_ctx->fc) in xts_aes_set_key()
417 xts_ctx->key_len = key_len; in xts_aes_set_key()
418 memcpy(xts_ctx->key, in_key, key_len); in xts_aes_set_key()
419 memcpy(xts_ctx->pcc_key, in_key + key_len, key_len); in xts_aes_set_key()
[all …]