Home
last modified time | relevance | path

Searched refs:hashtype (Results 1 – 10 of 10) sorted by relevance

/external/ipsec-tools/src/racoon/
Dpfkey.c456 ipsecdoi2pfkey_aalg(hashtype) in ipsecdoi2pfkey_aalg() argument
457 u_int hashtype; in ipsecdoi2pfkey_aalg()
459 switch (hashtype) {
488 "Not supported hash type: %u\n", hashtype);
496 "Invalid hash type: %u\n", hashtype);
686 keylen_aalg(hashtype) in keylen_aalg() argument
687 u_int hashtype; in keylen_aalg()
691 if (hashtype == 0)
694 res = alg_ipsec_hmacdef_hashlen(hashtype);
697 "invalid hmac algorithm %u.\n", hashtype);
[all …]
Dremoteconf.h144 int hashtype; member
Dipsec_doi.c379 s->hashtype),
381 tsap->hashtype));
402 tsap->hashtype == s->hashtype &&
513 if (sa.hashtype != s->hashtype) {
521 s->hashtype),
523 sa.hashtype));
616 sa->hashtype = (u_int16_t)ntohs(d->lorv);
2826 if (sa->hashtype) {
2829 p = isakmp_set_attr_l(p, OAKLEY_ATTR_HASH_ALG, sa->hashtype);
Dnattraversal.c131 saddr2str(addr), iph1->approval->hashtype, in natt_hash_addr()
Dhandler.c1465 if (approval->hashtype != p->hashtype) { in revalidate_ph1()
Dremoteconf.c602 alg_oakley_hashdef_name(prop->hashtype)); in dump_rmconf_single()
Doakley.c393 type = iph1->approval->hashtype;
423 type = iph1->approval->hashtype;
2864 prflen = alg_oakley_hashdef_hashlen(iph1->approval->hashtype);
2867 "invalid hash type %d.\n", iph1->approval->hashtype);
Dcfparse.y2402 new->hashtype = types[algclass_isakmp_hash];
/external/autotest/client/common_lib/
Dutils.py585 def hash(hashtype, input=None): argument
599 if hashtype not in ['md5', 'sha1']:
600 raise ValueError("Unsupported hash type: %s" % hashtype)
603 computed_hash = hashlib.new(hashtype)
605 if hashtype == 'md5':
607 elif hashtype == 'sha1':
/external/ipsec-tools/
Dsetup.c322 p->hashtype = hash; in add_proposal()