/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/kbcrypto/util.go
23 строки
451 B
M Ember Mou
add more granular crypto GUI errors (#22686)
29 фев 2020, 03:46
Не верифицирован
29 фев 2020, 03:46
eed65a0
Код
Авторство
О чём код?
// Copyright 2018 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package kbcrypto import ( "bytes" "crypto/hmac" keybase1 "github.com/keybase/client/go/protocol/keybase1" ) const ( SCSigCannotVerify = int(keybase1.StatusCode_SCSigCannotVerify) ) func FastByteArrayEq(a, b []byte) bool { return bytes.Equal(a, b) } func SecureByteArrayEq(a, b []byte) bool { return hmac.Equal(a, b) }