ecdsafixed

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ecdsafixed converts between the ASN.1 DER ECDSA signature encoding Go's crypto.Signer produces (SEC1 / RFC 3279 §2.2.3) and the fixed-width big-endian R||S encoding both JWS (RFC 7518 §3.4) and COSE (RFC 9053 §2.1) require instead — the one piece of signature-envelope logic internal/jose and internal/cose need identically, since both specs made the same encoding choice for ECDSA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDER

func ToDER(fixed []byte, size int) ([]byte, error)

ToDER converts a fixed-width big-endian R||S ECDSA signature (2*size bytes) to ASN.1 DER form.

func ToFixed

func ToFixed(der []byte, size int) ([]byte, error)

ToFixed converts a DER-encoded ECDSA signature to size-byte-per-value big-endian R||S form.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL