]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: implement crypto.Decrypter
authorNick Sullivan <nicholas.sullivan@gmail.com>
Wed, 25 Feb 2015 01:55:25 +0000 (17:55 -0800)
committerAdam Langley <agl@golang.org>
Mon, 16 Mar 2015 23:15:08 +0000 (23:15 +0000)
commit0a048ce5e9b599912872c4d8865e8f5beceb04ff
treeabfe7a1c70d44cbcb30f1a2a09d2fb0a5592d625
parentfa97136038a2f848b6d9c1820757a3762882263b
crypto/rsa: implement crypto.Decrypter

Decrypter is an interface to support opaque private keys that perform
decryption operations. This interface is analogous to the crypto.Signer
interface.

This change introduces the crypto.Decrypter interface and implements
the crypto.Decrypter interface for rsa.PrivateKey with both OAEP and
PKCS#1 v1.5 padding modes.

Change-Id: I433f649f84ed3c2148337d735cafd75f1d94a904
Reviewed-on: https://go-review.googlesource.com/3900
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/crypto.go
src/crypto/rsa/pkcs1v15.go
src/crypto/rsa/pkcs1v15_test.go
src/crypto/rsa/rsa.go