Source File
config.go
Belonging Package
golang.org/x/crypto/openpgp/packet
package packet
import (
)
RSABits int
}
func ( *Config) () io.Reader {
if == nil || .Rand == nil {
return rand.Reader
}
return .Rand
}
func ( *Config) () crypto.Hash {
if == nil || uint(.DefaultHash) == 0 {
return crypto.SHA256
}
return .DefaultHash
}
func ( *Config) () CipherFunction {
if == nil || uint8(.DefaultCipher) == 0 {
return CipherAES128
}
return .DefaultCipher
}
func ( *Config) () time.Time {
if == nil || .Time == nil {
return time.Now()
}
return .Time()
}
func ( *Config) () CompressionAlgo {
if == nil {
return CompressionNone
}
return .DefaultCompressionAlgo
}
func ( *Config) () int {
if == nil || .S2KCount == 0 {
return 0
}
return .S2KCount
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |