commit | 7287b4ba2ada9c4bb58e5e3ae41f4e3033abd2bb | [log] [tgz] |
---|---|---|
author | Ben Burkert <ben@benburkert.com> | Thu Apr 14 12:19:19 2016 -0700 |
committer | Ben Burkert <ben@benburkert.com> | Thu Jan 12 21:55:41 2017 -0800 |
tree | 27205dcbb3465196976c4a2c4d63b4f2e1bfb192 | |
parent | 7c6cc321c680f03b9ef0764448e780704f486b51 [diff] |
x/crypto/openpgp/internal/encoding: add Field, MPI & OID types The Field interface represents an encoded packet field. MPI is a Multiprecision Integer field as defined in rfc 4880, Section 3.2. OID is a variable length field as defined in rfc 6637, Section 8. By using the MPI and OID types for packet fields, the packet.ecdsaKey and packet.ecdhKdf types are replaced with the parseECDSA and parseECDH methods of packet.PublicKey. Change-Id: I8a7c16f8ab77c0aad3ed37540e606d9285907a5d