# HG changeset patch # User Kim Alvefur # Date 1740006130 -3600 # Node ID 17607f5ad815eb7977c09d3a4d4f7016d0850a4e # Parent fa9d8c82dc9e0539ed183373e39319fdcb7c55b3 util.crypto: Update teal interface spec Adds interfaces added in fb970df95374 diff -r fa9d8c82dc9e -r 17607f5ad815 teal-src/prosody/util/crypto.d.tl --- a/teal-src/prosody/util/crypto.d.tl Sat Nov 30 16:20:59 2024 +0100 +++ b/teal-src/prosody/util/crypto.d.tl Thu Feb 20 00:02:10 2025 +0100 @@ -2,7 +2,9 @@ record key private_pem : function (key) : string public_pem : function (key) : string + public_raw : function (key) : string get_type : function (key) : string + derive : function (key, key) : string end type base_evp_sign = function (key, message : string) : string @@ -44,9 +46,11 @@ aes_256_ctr_decrypt : Levp_decrypt generate_ed25519_keypair : function () : key + generate_p256_keypair : function () : key import_private_pem : function (string) : key import_public_pem : function (string) : key + import_public_ec_raw : function (string, string) : key parse_ecdsa_signature : function (string, integer) : string, string build_ecdsa_signature : function (r : string, s : string) : string