(name string)
| 70 | } |
| 71 | |
| 72 | func validPluginName(name string) bool { |
| 73 | if name == "" { |
| 74 | return false |
| 75 | } |
| 76 | allowed := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-._" |
| 77 | for _, r := range name { |
| 78 | if !strings.ContainsRune(allowed, r) { |
| 79 | return false |
| 80 | } |
| 81 | } |
| 82 | return true |
| 83 | } |
| 84 | |
| 85 | // EncodeX25519Recipient encodes a native X25519 recipient from a |
| 86 | // [crypto/ecdh.X25519] public key. It's meant for plugins that implement |
no outgoing calls
no test coverage detected
searching dependent graphs…