type github.com/gotd/td/internal/crypto.Key
35 uses
github.com/gotd/td/internal/crypto (current package)
exchange.go#L60: func NonceHash1(newNonce bin.Int256, key Key) (r bin.Int128) {
key.go#L17: type Key [256]byte
key.go#L19: func (k Key) String() string {
key.go#L25: func (k Key) Zero() bool {
key.go#L26: return k == Key{}
key.go#L30: func (k Key) ID() [8]byte {
key.go#L38: func (k Key) AuxHash() [8]byte {
key.go#L46: func (k Key) WithID() AuthKey {
key.go#L55: Value Key
keys.go#L39: func msgKeyLarge(r []byte, authKey Key, plaintextPadded []byte, mode Side) []byte {
keys.go#L58: func sha256a(r []byte, authKey *Key, msgKey *bin.Int128, x int) []byte {
keys.go#L70: func sha256b(r []byte, authKey *Key, msgKey *bin.Int128, x int) []byte {
keys.go#L108: func Keys(authKey Key, msgKey bin.Int128, mode Side) (key, iv bin.Int256) {
keys.go#L123: func MessageKey(authKey Key, plaintextPadded []byte, mode Side) bin.Int128 {
keys_old.go#L12: func sha1a(r []byte, authKey Key, msgKey bin.Int128, x int) []byte {
keys_old.go#L24: func sha1b(r []byte, authKey Key, msgKey bin.Int128, x int) []byte {
keys_old.go#L37: func sha1c(r []byte, authKey Key, msgKey bin.Int128, x int) []byte {
keys_old.go#L49: func sha1d(r []byte, authKey Key, msgKey bin.Int128, x int) []byte {
keys_old.go#L72: func OldKeys(authKey Key, msgKey bin.Int128, mode Side) (key, iv bin.Int256) {
github.com/gotd/td/internal/exchange
client_flow.go#L243: var key crypto.Key
server_flow.go#L249: var authKey crypto.Key
github.com/gotd/td/session
telethon.go#L77: var key crypto.Key
github.com/gotd/td/session/tdesktop
key_data.go#L12: localKey crypto.Key
key_data.go#L40: if l := len(key); l < len(crypto.Key{}) {
key_data.go#L43: var localKey crypto.Key
local_key.go#L18: func createLegacyLocalKey(passcode, salt []byte) (r crypto.Key) {
local_key.go#L30: func createLocalKey(passcode, salt []byte) (r crypto.Key) {
local_key.go#L47: func decryptLocal(encrypted []byte, localKey crypto.Key) ([]byte, error) {
local_key.go#L72: func encryptLocal(decrypted []byte, localKey crypto.Key) ([]byte, error) {
mtp_authorization.go#L19: Keys map[int]crypto.Key // DC ID -> Key
mtp_authorization.go#L23: func readMTPData(tgf *tdesktopFile, localKey crypto.Key) (MTPAuthorization, error) {
mtp_authorization.go#L45: func readKey(r *qtReader, k *crypto.Key) (uint32, error) {
mtp_authorization.go#L102: m.Keys = make(map[int]crypto.Key, keys)
mtp_authorization.go#L105: var key crypto.Key
mtp_config.go#L73: func readMTPConfig(tgf *tdesktopFile, localKey crypto.Key) (MTPConfig, error) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |