abla/crypto/p384
Generated from source.
Import with import "abla/crypto/p384".
Source: abla/crypto/p384/entry.ab
Re-exports abla/crypto/result.
p384PublicKey (fun)
fun p384PublicKey(privateKey: string): CryptoResult
The public key, 97 bytes (0x04 || X || Y), of a private key of 48 bytes.
p384IsValidPublicKey (fun)
fun p384IsValidPublicKey(encoded: string): bool
Whether encoded is an uncompressed point of the curve.
p384Ecdh (fun)
fun p384Ecdh(privateKey: string, peerPublicKey: string): CryptoResult
ECDH: the x coordinate, 48 bytes, of privateKey times the peer's public point. The peer's point is checked (a point of the curve: the group has cofactor 1, so that is all there is to check); a private key out of range is refused.
p384EcdsaSign (fun)
fun p384EcdsaSign(privateKey: string, message: string): CryptoResult
ECDSA over SHA-384, the signature as DER.
p384EcdsaSignRaw (fun)
fun p384EcdsaSignRaw(privateKey: string, message: string): CryptoResult
ECDSA over SHA-384 (RFC 6979 nonce, so a message always gets the same signature): the 96 bytes r || s.
p384EcdsaVerify (fun)
fun p384EcdsaVerify(publicKey: string, message: string, signature: string): bool
ECDSA over SHA-384 with a strict DER signature. As in any ECDSA, (r, s) and (r, n - s) both verify: never identify a signed message by its signature bytes.
p384EcdsaVerifyDigestRaw (fun)
fun p384EcdsaVerifyDigestRaw(publicKey: string, digest: string, signature: string): bool
Verifies the signature r || s (96 bytes) of a message digest (the leftmost 384 bits of a longer one count) under the public key (97 bytes).
p384SignatureToDer (fun)
fun p384SignatureToDer(raw: string): string
The signature r || s (96 bytes) as DER, the form X.509 and TLS carry.
p384SignatureFromDer (fun)
fun p384SignatureFromDer(der: string): string
r || s (96 bytes) from a strict DER ECDSA signature, or "".
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.