Lines Matching refs:len
48 PRINT_ARRAY("info struct", info.ptr, info.len); in derive()
70 PRINT_ARRAY("Common IV", cc->common_iv.ptr, cc->common_iv.len); in derive_common_iv()
84 PRINT_ARRAY("Sender Key", sc->sender_key.ptr, sc->sender_key.len); in derive_sender_key()
100 rc->recipient_key.len); in derive_recipient_key()
126 c->cc.common_iv.len = sizeof(c->cc.common_iv_buf); in oscore_context_init()
133 c->rc.recipient_id.len = params->recipient_id.len; in oscore_context_init()
136 params->recipient_id.len); in oscore_context_init()
137 c->rc.recipient_key.len = sizeof(c->rc.recipient_key_buf); in oscore_context_init()
143 c->sc.sender_key.len = sizeof(c->sc.sender_key_buf); in oscore_context_init()
154 c->rrc.nonce.len = sizeof(c->rrc.nonce_buf); in oscore_context_init()
156 c->rrc.echo_opt_val.len = sizeof(c->rrc.echo_opt_val_buf); in oscore_context_init()
192 uint8_t len = 0; in ssn2piv() local
194 tmp_piv[len] = (uint8_t)(ssn & 0xFF); in ssn2piv()
195 len++; in ssn2piv()
199 if (len == 0) { in ssn2piv()
202 piv->len = 1; in ssn2piv()
205 for (uint8_t pos = 0; pos < len; pos++) { in ssn2piv()
206 piv->ptr[pos] = tmp_piv[len - 1 - pos]; in ssn2piv()
208 piv->len = len; in ssn2piv()
220 uint32_t len = piv->len; in piv2ssn() local
221 if (len > MAX_PIV_LEN) { in piv2ssn()
228 for (uint32_t pos = 0; pos < len; pos++) { in piv2ssn()
230 << (8 * (len - 1 - pos)); in piv2ssn()