Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c343 long ckey_len; in ovpn_parse_key() local
354 ckey_len = ftell(fp); in ovpn_parse_key()
358 if (ckey_len > 256) in ovpn_parse_key()
359 ckey_len = 256; in ovpn_parse_key()
361 ckey = malloc(ckey_len); in ovpn_parse_key()
365 ret = fread(ckey, 1, ckey_len, fp); in ovpn_parse_key()
366 if (ret != ckey_len) { in ovpn_parse_key()
374 ret = mbedtls_base64_decode(NULL, 0, &olen, ckey, ckey_len); in ovpn_parse_key()
391 ret = mbedtls_base64_decode(bkey, olen, &olen, ckey, ckey_len); in ovpn_parse_key()
/linux/arch/s390/crypto/
H A Dpaes_s390.c1212 unsigned int ckey_len; in xts_paes_setkey() local
1237 ckey_len = (ctx->pk[0].type == PKEY_KEYTYPE_AES_128) ? in xts_paes_setkey()
1239 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_setkey()
1240 memcpy(ckey + ckey_len, ctx->pk[1].protkey, ckey_len); in xts_paes_setkey()
1241 rc = xts_verify_key(tfm, ckey, 2 * ckey_len); in xts_paes_setkey()