Versions in this module Expand all Collapse all v0 v0.14.0 May 6, 2024 v0.13.0 Dec 29, 2023 Changes in this version + const DefaultIterations + func DecryptPEMBlock(block *pem.Block, password []byte) ([]byte, error) + func EncryptPEMBlock(rand io.Reader, data, password []byte) (block *pem.Block, err error) + func MarshalPKCS5PrivateKeyWithPassword(key crypto.PrivateKey, password []byte) (data []byte, err error) + func ParsePKCS5PrivateKeyWithPassword(data []byte, password []byte) (key crypto.PrivateKey, err error) + type EncryptedPrivateKeyInfo struct + EncryptedData []byte + EncryptionAlgorithm EncryptionAlgorithmIdentifier + type EncryptionAlgorithmIdentifier struct + Algorithm asn1.ObjectIdentifier + Params PBES2Params + type EncryptionScheme struct + EncryptionAlgorithm asn1.ObjectIdentifier + IV []byte + type KeyDerivationFunc struct + Algorithm asn1.ObjectIdentifier + PBKDF2Params PBKDF2Params + type PBES2Params struct + EncryptionScheme EncryptionScheme + KeyDerivationFunc KeyDerivationFunc + type PBKDF2Params struct + IterationCount int + PRF pkix.AlgorithmIdentifier + Salt []byte