keys

package
v0.0.0-...-0eaabd3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RsaKeys = "" /* 2280-byte string literal not displayed */

Functions

func GetRSAKeys

func GetRSAKeys() ([]*rsa.PublicKey, error)

func RSAFingerprint

func RSAFingerprint(key *rsa.PublicKey) []byte

RSAFingerprint calculates the fingerprint of an RSA key.

Since an RSA key in MTProto is represented as a TL object, a buffer is used for the calculation. For more information, see: https://core.telegram.org/mtproto/auth_key

func SaveRsaKey

func SaveRsaKey(key *rsa.PublicKey) string

func Sha1

func Sha1(input string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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