Searched refs:ckey_len (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | ovpn-cli.c | 347 long ckey_len; in ovpn_parse_key() local 358 ckey_len = ftell(fp); in ovpn_parse_key() 362 if (ckey_len > 256) in ovpn_parse_key() 363 ckey_len = 256; in ovpn_parse_key() 365 ckey = malloc(ckey_len); in ovpn_parse_key() 369 ret = fread(ckey, 1, ckey_len, fp); in ovpn_parse_key() 370 if (ret != ckey_len) { in ovpn_parse_key() 378 ret = mbedtls_base64_decode(NULL, 0, &olen, ckey, ckey_len); in ovpn_parse_key() 395 ret = mbedtls_base64_decode(bkey, olen, &olen, ckey, ckey_len); in ovpn_parse_key()
|
| /linux/arch/s390/crypto/ |
| H A D | paes_s390.c | 1219 unsigned int ckey_len; in xts_paes_setkey() local 1244 ckey_len = (ctx->pk[0].type == PKEY_KEYTYPE_AES_128) ? in xts_paes_setkey() 1246 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_setkey() 1247 memcpy(ckey + ckey_len, ctx->pk[1].protkey, ckey_len); in xts_paes_setkey() 1248 rc = xts_verify_key(tfm, ckey, 2 * ckey_len); in xts_paes_setkey()
|