Home
last modified time | relevance | path

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

/freebsd/contrib/unbound/sldns/
H A Dkeyraw.c665 int pre_len = 12; in sldns_ed255192pkey_raw() local
670 if(keylen != 32 || keylen + pre_len > sizeof(buf)) in sldns_ed255192pkey_raw()
672 memmove(buf, pre, pre_len); in sldns_ed255192pkey_raw()
673 memmove(buf+pre_len, key, keylen); in sldns_ed255192pkey_raw()
674 evp_key = d2i_PUBKEY(NULL, &pp, (int)(pre_len+keylen)); in sldns_ed255192pkey_raw()
686 int pre_len = 12; in sldns_ed4482pkey_raw() local
691 if(keylen != 57 || keylen + pre_len > sizeof(buf)) in sldns_ed4482pkey_raw()
693 memmove(buf, pre, pre_len); in sldns_ed4482pkey_raw()
694 memmove(buf+pre_len, key, keylen); in sldns_ed4482pkey_raw()
695 evp_key = d2i_PUBKEY(NULL, &pp, (int)(pre_len+keylen)); in sldns_ed4482pkey_raw()
/freebsd/contrib/ldns/
H A Ddnssec_verify.c1877 int pre_len = 12; in ldns_ed255192pkey_raw() local
1882 if(keylen != 32 || keylen + pre_len > sizeof(buf)) in ldns_ed255192pkey_raw()
1884 memmove(buf, pre, pre_len); in ldns_ed255192pkey_raw()
1885 memmove(buf+pre_len, key, keylen); in ldns_ed255192pkey_raw()
1886 evp_key = d2i_PUBKEY(NULL, &pp, (int)(pre_len+keylen)); in ldns_ed255192pkey_raw()
1915 int pre_len = 12; in ldns_ed4482pkey_raw() local
1920 if(keylen != 57 || keylen + pre_len > sizeof(buf)) in ldns_ed4482pkey_raw()
1922 memmove(buf, pre, pre_len); in ldns_ed4482pkey_raw()
1923 memmove(buf+pre_len, key, keylen); in ldns_ed4482pkey_raw()
1924 evp_key = d2i_PUBKEY(NULL, &pp, (int)(pre_len+keylen)); in ldns_ed4482pkey_raw()
H A Dkeys.c319 int pre_len = 16; in ldns_ed25519_priv_raw() local
331 buflen = pre_len + plen; in ldns_ed25519_priv_raw()
334 memmove(buf, pre, pre_len); in ldns_ed25519_priv_raw()
335 memmove(buf+pre_len, pkey, plen); in ldns_ed25519_priv_raw()
378 int pre_len = 16; in ldns_ed448_priv_raw() local
383 buflen = pre_len + plen; in ldns_ed448_priv_raw()
386 memmove(buf, pre, pre_len); in ldns_ed448_priv_raw()
387 memmove(buf+pre_len, pkey, plen); in ldns_ed448_priv_raw()
H A Ddnssec.c1918 int pre_len = 4; in ldns_convert_ecdsa_rrsig_rdf2asn1() local
1936 raw_sig_len = pre_len + r_high + bnsize - r_rem + mid_len + in ldns_convert_ecdsa_rrsig_rdf2asn1()
/freebsd/contrib/unbound/validator/
H A Dval_secalgo.c469 int pre_len = 4; in setup_ecdsa_sig() local
489 raw_sig_len = pre_len + r_high + bnsize - r_rem + mid_len + in setup_ecdsa_sig()
/freebsd/sys/dev/bce/
H A Dif_bce.c2595 u32 pre_len; in bce_nvram_read() local
2598 pre_len = 4 - (offset & 3); in bce_nvram_read()
2600 if (pre_len >= len32) { in bce_nvram_read()
2601 pre_len = len32; in bce_nvram_read()
2613 memcpy(ret_buf, buf + (offset & 3), pre_len); in bce_nvram_read()
2616 ret_buf += pre_len; in bce_nvram_read()
2617 len32 -= pre_len; in bce_nvram_read()