You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
421 B
24 lines
421 B
package pkcs8 |
|
|
|
import ( |
|
"crypto/des" |
|
"encoding/asn1" |
|
) |
|
|
|
var ( |
|
oidDESEDE3CBC = asn1.ObjectIdentifier{1, 2, 840, 113549, 3, 7} |
|
) |
|
|
|
func init() { |
|
RegisterCipher(oidDESEDE3CBC, func() Cipher { |
|
return TripleDESCBC |
|
}) |
|
} |
|
|
|
// TripleDESCBC is the 168-bit key 3DES cipher in CBC mode. |
|
var TripleDESCBC = cipherWithBlock{ |
|
ivSize: des.BlockSize, |
|
keySize: 24, |
|
newBlock: des.NewTripleDESCipher, |
|
oid: oidDESEDE3CBC, |
|
}
|
|
|