3DES uses 24-byte (192-bit) keys ASN1PBE represents a Password-Based Encryption structure from Firefox's NSS. The key parameter semantics vary by implementation: - privateKeyPBE / passwordCheckPBE: key is the global salt used for key derivation - credentialPBE: key is the already-derived master key
| 16 | // - privateKeyPBE / passwordCheckPBE: key is the global salt used for key derivation |
| 17 | // - credentialPBE: key is the already-derived master key |
| 18 | type ASN1PBE interface { |
| 19 | Decrypt(key []byte) ([]byte, error) |
| 20 | Encrypt(key, plaintext []byte) ([]byte, error) |
| 21 | } |
| 22 | |
| 23 | func NewASN1PBE(b []byte) (pbe ASN1PBE, err error) { |
| 24 | var ( |
no outgoing calls
no test coverage detected