()
| 47 | } |
| 48 | |
| 49 | func (p *PrivateKey) isEncrypted() bool { |
| 50 | return p.Block.Headers["Proc-Type"] == "4,ENCRYPTED" || p.isOpenSSHFormatEncrypted() |
| 51 | } |
| 52 | |
| 53 | func (p *PrivateKey) isOpenSSHFormatEncrypted() bool { |
| 54 | if p.Block.Type != "OPENSSH PRIVATE KEY" { |