• Home
  • Raw
  • Download

Lines Matching refs:sig_msg

551 int xmss_sign(unsigned char *sk, bds_state *state, unsigned char *sig_msg, unsigned long long *sig_…  in xmss_sign()  argument
605 sig_msg[0] = (idx >> 24) & 255; in xmss_sign()
606 sig_msg[1] = (idx >> 16) & 255; in xmss_sign()
607 sig_msg[2] = (idx >> 8) & 255; in xmss_sign()
608 sig_msg[3] = idx & 255; in xmss_sign()
610 sig_msg += 4; in xmss_sign()
615 sig_msg[i] = R[i]; in xmss_sign()
617 sig_msg += n; in xmss_sign()
632 wots_sign(sig_msg, msg_h, ots_seed, &(params->wots_par), pub_seed, ots_addr); in xmss_sign()
634 sig_msg += params->wots_par.keysize; in xmss_sign()
638 memcpy(sig_msg, state->auth, h*n); in xmss_sign()
647 sig_msg += params->h*n; in xmss_sign()
654 memcpy(sig_msg, msg, msglen); in xmss_sign()
663 int xmss_sign_open(unsigned char *msg, unsigned long long *msglen, const unsigned char *sig_msg, un… in xmss_sign_open() argument
688 …idx = ((unsigned long)sig_msg[0] << 24) | ((unsigned long)sig_msg[1] << 16) | ((unsigned long)sig_… in xmss_sign_open()
692 memcpy(hash_key, sig_msg+4,n); in xmss_sign_open()
696 sig_msg += (n+4); in xmss_sign_open()
702 h_msg(msg_h, sig_msg + tmp_sig_len, m_len, hash_key, 3*n, n); in xmss_sign_open()
711 wots_pkFromSig(wots_pk, sig_msg, msg_h, &(params->wots_par), pub_seed, ots_addr); in xmss_sign_open()
713 sig_msg += params->wots_par.keysize; in xmss_sign_open()
721 validate_authpath(root, pkhash, idx, sig_msg, params, pub_seed, node_addr); in xmss_sign_open()
723 sig_msg += params->h*n; in xmss_sign_open()
732 msg[i] = sig_msg[i]; in xmss_sign_open()
787 …ed char *sk, bds_state *states, unsigned char *wots_sigs, unsigned char *sig_msg, unsigned long lo… in xmssmt_sign() argument
853 sig_msg[i] = (idx >> 8*(idx_len - 1 - i)) & 255; in xmssmt_sign()
856 sig_msg += idx_len; in xmssmt_sign()
861 sig_msg[i] = R[i]; in xmssmt_sign()
863 sig_msg += n; in xmssmt_sign()
884 wots_sign(sig_msg, msg_h, ots_seed, &(params->xmss_par.wots_par), pub_seed, ots_addr); in xmssmt_sign()
886 sig_msg += params->xmss_par.wots_par.keysize; in xmssmt_sign()
889 memcpy(sig_msg, states[0].auth, tree_h*n); in xmssmt_sign()
890 sig_msg += tree_h*n; in xmssmt_sign()
896 …memcpy(sig_msg, wots_sigs + (i-1)*params->xmss_par.wots_par.keysize, params->xmss_par.wots_par.key… in xmssmt_sign()
898 sig_msg += params->xmss_par.wots_par.keysize; in xmssmt_sign()
902 memcpy(sig_msg, states[i].auth, tree_h*n); in xmssmt_sign()
903 sig_msg += tree_h*n; in xmssmt_sign()
961 memcpy(sig_msg, msg, msglen); in xmssmt_sign()
970 int xmssmt_sign_open(unsigned char *msg, unsigned long long *msglen, const unsigned char *sig_msg, … in xmssmt_sign_open() argument
997 idx |= ((unsigned long long)sig_msg[i]) << (8*(idx_len - 1 - i)); in xmssmt_sign_open()
1000 sig_msg += idx_len; in xmssmt_sign_open()
1004 memcpy(hash_key, sig_msg,n); in xmssmt_sign_open()
1008 sig_msg += n; in xmssmt_sign_open()
1015 h_msg(msg_h, sig_msg + tmp_sig_len, m_len, hash_key, 3*n, n); in xmssmt_sign_open()
1038 wots_pkFromSig(wots_pk, sig_msg, msg_h, &(params->xmss_par.wots_par), pub_seed, ots_addr); in xmssmt_sign_open()
1040 sig_msg += params->xmss_par.wots_par.keysize; in xmssmt_sign_open()
1048 validate_authpath(root, pkhash, idx_leaf, sig_msg, &(params->xmss_par), pub_seed, node_addr); in xmssmt_sign_open()
1050 sig_msg += tree_h*n; in xmssmt_sign_open()
1071 wots_pkFromSig(wots_pk, sig_msg, root, &(params->xmss_par.wots_par), pub_seed, ots_addr); in xmssmt_sign_open()
1073 sig_msg += params->xmss_par.wots_par.keysize; in xmssmt_sign_open()
1081 validate_authpath(root, pkhash, idx_leaf, sig_msg, &(params->xmss_par), pub_seed, node_addr); in xmssmt_sign_open()
1083 sig_msg += tree_h*n; in xmssmt_sign_open()
1094 msg[i] = sig_msg[i]; in xmssmt_sign_open()