Documentation ¶
Index ¶
- func DeriveECDHES(alg string, apuData, apvData []byte, priv *ecdsa.PrivateKey, ...) []byte
- func DeriveSm2ECDHES(alg string, apuData, apvData []byte, priv *sm2.PrivateKey, pub *sm2.PublicKey, ...) []byte
- func NewConcatKDF(hash x509.Hash, z, algID, ptyUInfo, ptyVInfo, supPubInfo, supPrivInfo []byte) io.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveECDHES ¶
func DeriveECDHES(alg string, apuData, apvData []byte, priv *ecdsa.PrivateKey, pub *ecdsa.PublicKey, size int) []byte
DeriveECDHES derives a shared encryption key using ECDH/ConcatKDF as described in JWE/JWA. It is an error to call this function with a private/public key that are not on the same curve. Callers must ensure that the keys are valid before calling this function. Output size may be at most 1<<16 bytes (64 KiB).
func DeriveSm2ECDHES ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.