golang.org/x/crypto/openpgp/packet.Config.Random (method)
14 uses
golang.org/x/crypto/openpgp/packet (current package)
config.go#L51: func (c *Config) Random() io.Reader {
encrypted_key.go#L84: b, err = k.Decrypt(config.Random(), padToKeySize(k.Public().(*rsa.PublicKey), e.encryptedMPI1.bytes), nil)
encrypted_key.go#L156: return serializeEncryptedKeyRSA(w, config.Random(), buf, pub.PublicKey.(*rsa.PublicKey), keyBlock)
encrypted_key.go#L158: return serializeEncryptedKeyElGamal(w, config.Random(), buf, pub.PublicKey.(*elgamal.PublicKey), keyBlock)
signature.go#L521: sig.RSASignature.bytes, err = priv.PrivateKey.(crypto.Signer).Sign(config.Random(), digest, sig.Hash)
signature.go#L531: r, s, err := dsa.Sign(config.Random(), dsaPriv, digest)
signature.go#L542: r, s, err = ecdsa.Sign(config.Random(), pk, digest)
signature.go#L545: b, err = priv.PrivateKey.(crypto.Signer).Sign(config.Random(), digest, sig.Hash)
symmetric_key_encrypted.go#L114: err = s2k.Serialize(s2kBuf, keyEncryptingKey, config.Random(), passphrase, &s2k.Config{Hash: config.Hash(), S2KCount: config.PasswordHashIterations()})
symmetric_key_encrypted.go#L139: _, err = io.ReadFull(config.Random(), sessionKey)
symmetrically_encrypted.go#L274: _, err = config.Random().Read(iv)
golang.org/x/crypto/openpgp
keys.go#L518: signingPriv, err := rsa.GenerateKey(config.Random(), bits)
keys.go#L522: encryptingPriv, err := rsa.GenerateKey(config.Random(), bits)
write.go#L323: if _, err := io.ReadFull(config.Random(), symKey); err != nil {
 |
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. |