]> Cypherpunks repositories - gostls13.git/commit
crypto/openpgp: add error and armor
authorAdam Langley <agl@golang.org>
Wed, 12 Jan 2011 01:54:30 +0000 (20:54 -0500)
committerAdam Langley <agl@golang.org>
Wed, 12 Jan 2011 01:54:30 +0000 (20:54 -0500)
commit5aeacadc5a17251aa21e8e4e44118b9f1070863d
tree8552d6efcae547f0e724196ee3de7892b1315da2
parent1aec7c7f34ff88a09a3fa7c9ff131598360f8751
crypto/openpgp: add error and armor

error is needed by all the OpenPGP packages as they return a shared
family of error types.

armor implements OpenPGP armoring. It's very like PEM except:
  a) it includes a CRC24 checksum
  b) PEM values are small (a few KB) and so encoding/pem assumes that
     they fit in memory. Armored data can be very large and so this
     package presents a streaming interface.

R=r, nsz, rsc
CC=golang-dev
https://golang.org/cl/3786043
src/pkg/crypto/openpgp/armor/Makefile [new file with mode: 0644]
src/pkg/crypto/openpgp/armor/armor.go [new file with mode: 0644]
src/pkg/crypto/openpgp/armor/armor_test.go [new file with mode: 0644]
src/pkg/crypto/openpgp/armor/encode.go [new file with mode: 0644]
src/pkg/crypto/openpgp/error/Makefile [new file with mode: 0644]
src/pkg/crypto/openpgp/error/error.go [new file with mode: 0644]