Home | History | Annotate | Download | only in x509

Lines Matching refs:PEM

7 // RFC 1423 describes the encryption of PEM blocks. The algorithm used to
17 "encoding/pem"
35 // rfc1423Algo holds a method for enciphering a PEM block.
44 // rfc1423Algos holds a slice of the possible ways to encrypt a PEM
98 // IsEncryptedPEMBlock returns if the PEM block is password encrypted.
99 func IsEncryptedPEMBlock(b *pem.Block) bool {
107 // DecryptPEMBlock takes a password encrypted PEM block and the password used to
112 // in the encrypted-PEM format, it's not always possible to detect an incorrect
115 func DecryptPEMBlock(b *pem.Block, password []byte) ([]byte, error) {
148 return nil, errors.New("x509: encrypted PEM data is not a multiple of the block size")
180 // EncryptPEMBlock returns a PEM block of the specified type holding the
183 func EncryptPEMBlock(rand io.Reader, blockType string, data, password []byte, alg PEMCipher) (*pem.Block, error) {
212 return &pem.Block{