E
Size: a a a
DP
func convertPubKey(key ssh.PublicKey) (*rsa.PublicKey, bool) {
if cryptoKey, ok := key.(ssh.CryptoPublicKey); ok {
rsaKey, ok := cryptoKey.CryptoPublicKey().(*rsa.PublicKey)
return rsaKey, ok
}
return nil, false
}
Д
func convertPubKey(key ssh.PublicKey) (*rsa.PublicKey, bool) {
if cryptoKey, ok := key.(ssh.CryptoPublicKey); ok {
rsaKey, ok := cryptoKey.CryptoPublicKey().(*rsa.PublicKey)
return rsaKey, ok
}
return nil, false
}
DP
ssh.PublicKey
есть метод Public() interface{}
, который можно ассертить к чему угодноDP
Д
DP
Д
НС
НС
faker.Locale = locales.Ru
IG
IG