Lines Matching refs:signature
4593 unsigned char *signature = NULL;
4618 wpa_printf(MSG_DEBUG, "DPP: Unknown signature algorithm");
4718 signature = os_malloc(signature_len);
4719 if (!signature)
4721 if (EVP_DigestSignFinal(md_ctx, signature, &signature_len) != 1) {
4726 wpa_hexdump(MSG_DEBUG, "DPP: signedConnector ECDSA signature (DER)",
4727 signature, signature_len);
4729 p = signature;
4734 if (dpp_bn2bin_pad(r, signature, curve->prime_len) < 0 ||
4735 dpp_bn2bin_pad(s, signature + curve->prime_len,
4739 wpa_hexdump(MSG_DEBUG, "DPP: signedConnector ECDSA signature (raw r,s)",
4740 signature, signature_len);
4741 signed3 = (char *) base64_url_encode(signature, signature_len,
4785 os_free(signature);
5562 unsigned char *prot_hdr = NULL, *signature = NULL;
5641 signature = base64_url_decode((const unsigned char *) pos,
5643 if (!signature) {
5645 "DPP: Failed to base64url decode signedConnector signature");
5649 wpa_hexdump(MSG_DEBUG, "DPP: signedConnector - signature",
5650 signature, signature_len);
5659 "DPP: Unexpected signedConnector signature length (%d)",
5665 /* JWS Signature encodes the signature (r,s) as two octet strings. Need
5667 r = BN_bin2bn(signature, signature_len / 2, NULL);
5668 s = BN_bin2bn(signature + signature_len / 2, signature_len / 2, NULL);
5677 wpa_printf(MSG_DEBUG, "DPP: Could not DER encode signature");
5680 wpa_hexdump(MSG_DEBUG, "DPP: DER encoded signature", der, der_len);
5712 os_free(signature);
8215 unsigned char *signature = NULL;
8232 wpa_printf(MSG_DEBUG, "DPP: Original base64url encoded signature: %s",
8234 signature = base64_url_decode((const unsigned char *) pos,
8236 if (!signature || signature_len == 0)
8238 wpa_hexdump(MSG_DEBUG, "DPP: Original Connector signature",
8239 signature, signature_len);
8240 signature[signature_len - 1] ^= 0x01;
8241 wpa_hexdump(MSG_DEBUG, "DPP: Corrupted Connector signature",
8242 signature, signature_len);
8243 signed3 = (char *) base64_url_encode(signature, signature_len,
8249 wpa_printf(MSG_DEBUG, "DPP: Corrupted base64url encoded signature: %s",
8253 os_free(signature);