Searched refs:algfd (Results 1 – 5 of 5) sorted by relevance
/external/ltp/lib/ |
D | tst_af_alg.c | 25 void tst_alg_bind_addr(int algfd, const struct sockaddr_alg *addr) in tst_alg_bind_addr() argument 27 TEST(bind(algfd, (const struct sockaddr *)addr, sizeof(*addr))); in tst_alg_bind_addr() 55 void tst_alg_bind(int algfd, const char *algtype, const char *algname) in tst_alg_bind() argument 61 tst_alg_bind_addr(algfd, &addr); in tst_alg_bind() 66 int algfd; in tst_have_alg() local 70 algfd = tst_alg_create(); in tst_have_alg() 74 TEST(bind(algfd, (const struct sockaddr *)&addr, sizeof(addr))); in tst_have_alg() 84 close(algfd); in tst_have_alg() 90 int algfd = tst_alg_create(); in tst_require_alg() local 92 tst_alg_bind(algfd, algtype, algname); in tst_require_alg() [all …]
|
/external/ltp/testcases/kernel/crypto/ |
D | af_alg04.c | 20 int algfd, reqfd; in run() local 27 algfd = tst_alg_setup("hash", "vmac64(aes)", NULL, 16); in run() 29 algfd = tst_alg_setup("hash", "vmac(aes)", NULL, 16); in run() 35 reqfd = tst_alg_accept(algfd); in run() 51 close(algfd); in run()
|
D | af_alg06.c | 33 int algfd; in run() local 35 algfd = tst_alg_setup("aead", "authenc(hmac(sha256),cbc(aes))", in run() 39 TEST(setsockopt(algfd, SOL_ALG, ALG_SET_KEY, &key, sizeof(key))); in run()
|
D | af_alg01.c | 38 int algfd; in test_with_hash_alg() local 47 algfd = tst_alg_setup("hash", hmac_algname, NULL, 0); in test_with_hash_alg() 48 if (setsockopt(algfd, SOL_ALG, ALG_SET_KEY, in test_with_hash_alg()
|
/external/ltp/include/ |
D | tst_af_alg.h | 40 void tst_alg_bind_addr(int algfd, const struct sockaddr_alg *addr); 55 void tst_alg_bind(int algfd, const char *algtype, const char *algname); 88 void tst_alg_setkey(int algfd, const uint8_t *key, unsigned int keylen); 105 int tst_alg_accept(int algfd);
|