Home
last modified time | relevance | path

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

/third_party/openssl/crypto/asn1/
Dp5_scrypt.c152 SCRYPT_PARAMS *sparam = SCRYPT_PARAMS_new(); in pkcs5_scrypt_set() local
154 if (sparam == NULL) in pkcs5_scrypt_set()
161 if (ASN1_STRING_set(sparam->salt, salt, saltlen) == 0) in pkcs5_scrypt_set()
164 if (salt == NULL && RAND_bytes(sparam->salt->data, saltlen) <= 0) in pkcs5_scrypt_set()
167 if (ASN1_INTEGER_set_uint64(sparam->costParameter, N) == 0) in pkcs5_scrypt_set()
170 if (ASN1_INTEGER_set_uint64(sparam->blockSize, r) == 0) in pkcs5_scrypt_set()
173 if (ASN1_INTEGER_set_uint64(sparam->parallelizationParameter, p) == 0) in pkcs5_scrypt_set()
179 sparam->keyLength = ASN1_INTEGER_new(); in pkcs5_scrypt_set()
180 if (sparam->keyLength == NULL) in pkcs5_scrypt_set()
182 if (ASN1_INTEGER_set_int64(sparam->keyLength, keylen) == 0) in pkcs5_scrypt_set()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/
D1-1.c28 struct sched_param sparam; in a_thread_func() local
34 sparam.sched_priority = priority; in a_thread_func()
36 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func()
41 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in a_thread_func()
46 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); in a_thread_func()
47 if (policy_1 != policy || sparam.sched_priority != priority) { in a_thread_func()
58 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in a_thread_func()
63 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); in a_thread_func()
64 if (sparam.sched_priority != (priority + 1)) { in a_thread_func()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
D1-2.c32 struct sched_param sparam; in thread_func() local
38 sparam.sched_priority = priority; in thread_func()
40 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in thread_func()
45 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in thread_func()
56 if (sparam.sched_priority != priority) { in thread_func()
58 sparam.sched_priority, priority); in thread_func()
D1-1.c31 struct sched_param sparam; in thread_func() local
35 rc = pthread_getschedparam(pthread_self(), &policy, &sparam); in thread_func()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
D1-1.c18 struct sched_param sparam; in a_thread_func() local
24 sparam.sched_priority = priority; in a_thread_func()
26 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func()
31 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in a_thread_func()
37 if (policy_1 != policy || sparam.sched_priority != priority) { in a_thread_func()
/third_party/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c275 struct sched_param sparam = {.sched_priority = 1}; in verify() local
277 if (sched_setscheduler(0, SCHED_FIFO, &sparam)) { in verify()
291 sparam.sched_priority = 0; in verify()
292 if (sched_setscheduler(0, SCHED_OTHER, &sparam)) { in verify()