Searched refs:klen (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pbes/ |
A D | pbes.c | 19 unsigned long klen, keylen, dlen; in pbes_decrypt() local 33 klen = arg->type.keylen; in pbes_decrypt() 40 klen = arg->key_bits / 8; in pbes_decrypt() 42 keylen = klen; in pbes_decrypt() 47 iv = k + klen; in pbes_decrypt() 48 klen += arg->type.blocklen; in pbes_decrypt() 51 if (klen > sizeof(k)) return CRYPT_INVALID_ARG; in pbes_decrypt() 53 … arg->pwdlen, arg->salt->data, arg->salt->size, arg->iterations, hid, k, &klen)) != CRYPT_OK) goto… in pbes_decrypt()
|
A D | pbes2.c | 80 unsigned long klen; in pbes2_extract() local 157 klen = mp_get_int(lenc->next->child->data); in pbes2_extract() 166 switch (klen) { in pbes2_extract() 178 if (klen < 256) return CRYPT_INVALID_KEYSIZE; in pbes2_extract() 180 res->key_bits = klen; in pbes2_extract()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/blake2/ |
A D | blake2bmac_test.c | 274 unsigned long ilen, klen = sizeof(key), mlen = 64; in blake2bmac_test() 284 blake2bmac_init(&st, olen, key, klen); in blake2bmac_test() 295 blake2bmac_init(&st, olen, key, klen); in blake2bmac_test()
|
A D | blake2smac_test.c | 274 unsigned long ilen, klen = sizeof(key), mlen = 32; in blake2smac_test() 284 blake2smac_init(&st, olen, key, klen); in blake2smac_test() 295 blake2smac_init(&st, olen, key, klen); in blake2smac_test()
|
/optee_os-3.20.0/core/tee/ |
A D | tee_svc.c | 455 uint32_t klen = 0; in syscall_get_property() local 473 res = copy_from_user(&klen, blen, sizeof(klen)); in syscall_get_property() 478 klen_size = klen; in syscall_get_property() 480 klen = klen_size; in syscall_get_property() 481 res2 = copy_to_user(blen, &klen, sizeof(*blen)); in syscall_get_property() 483 if (klen < prop->len) in syscall_get_property() 497 res = copy_from_user(&klen, name_len, sizeof(klen)); in syscall_get_property() 503 if (klen < elen) in syscall_get_property()
|
/optee_os-3.20.0/core/drivers/ |
A D | versal_trng.c | 320 static void setup_key(const unsigned char *k, size_t klen) in setup_key() argument 327 memcpy(schedule, k, klen); in setup_key() 328 for (i = klen; i < sch_size; i += 4) { in setup_key() 339 if (i % klen == 0) { in setup_key() 343 } else if (i % klen == 16) { in setup_key() 346 ik = i - klen; in setup_key()
|
Completed in 11 milliseconds