• Roger Peppe's avatar
    crypto/x509: implement EncryptPEMBlock · 791fb978
    Roger Peppe authored
    Arbitrary decisions: order of the arguments and the
    fact it takes a block-type argument (rather than
    leaving to user to fill it in later); I'm happy whatever
    colour we want to paint it.
    
    We also change DecryptPEMBlock so that it won't
    panic when the IV has the wrong size.
    
    R=agl, agl
    CC=golang-dev
    https://golang.org/cl/6820114
    791fb978
pem_decrypt_test.go 7.91 KB