Searched refs:algfd (Results 1 – 5 of 5) sorted by relevance
/third_party/ltp/lib/ |
D | tst_af_alg.c | 27 void tst_alg_bind_addr(int algfd, const struct sockaddr_alg *addr) in tst_alg_bind_addr() argument 29 const long ret = bind(algfd, (const struct sockaddr *)addr, in tst_alg_bind_addr() 67 void tst_alg_bind(int algfd, const char *algtype, const char *algname) in tst_alg_bind() argument 73 tst_alg_bind_addr(algfd, &addr); in tst_alg_bind() 80 int algfd; in tst_try_alg() local 83 algfd = tst_alg_create(); in tst_try_alg() 87 ret = bind(algfd, (const struct sockaddr *)&addr, sizeof(addr)); in tst_try_alg() 92 close(algfd); in tst_try_alg() 128 int algfd = tst_alg_create(); in tst_require_alg() local 130 tst_alg_bind(algfd, algtype, algname); in tst_require_alg() [all …]
|
/third_party/ltp/include/ |
D | tst_af_alg.h | 41 void tst_alg_bind_addr(int algfd, const struct sockaddr_alg *addr); 56 void tst_alg_bind(int algfd, const char *algtype, const char *algname); 100 void tst_alg_setkey(int algfd, const uint8_t *key, unsigned int keylen); 117 int tst_alg_accept(int algfd);
|
/third_party/ltp/testcases/kernel/crypto/ |
D | af_alg04.c | 22 int algfd, reqfd; in test_with_symm_enc_algs() local 35 algfd = tst_alg_setup("hash", vmac_algname, NULL, 16); in test_with_symm_enc_algs() 41 reqfd = tst_alg_accept(algfd); in test_with_symm_enc_algs() 57 close(algfd); in test_with_symm_enc_algs()
|
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 | 34 int algfd; in test_with_hash_alg() local 43 algfd = tst_alg_setup("hash", hmac_algname, NULL, 0); in test_with_hash_alg() 44 if (setsockopt(algfd, SOL_ALG, ALG_SET_KEY, in test_with_hash_alg()
|