// Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // The go-ethereum library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . package crypto import ( "bytes" "fmt" "testing" "github.com/ethereum/go-ethereum/common" ) func TestBox(t *testing.T) { prv1 := ToECDSA(common.Hex2Bytes("4b50fa71f5c3eeb8fdc452224b2395af2fcc3d125e06c32c82e048c0559db03f")) prv2 := ToECDSA(common.Hex2Bytes("d0b043b4c5d657670778242d82d68a29d25d7d711127d17b8e299f156dad361a")) pub2 := ToECDSAPub(common.Hex2Bytes("04bd27a63c91fe3233c5777e6d3d7b39204d398c8f92655947eb5a373d46e1688f022a1632d264725cbc7dc43ee1cfebde42fa0a86d08b55d2acfbb5e9b3b48dc5")) message := []byte("Hello, world.") ct, err := Encrypt(pub2, message) if err != nil { fmt.Println(err.Error()) t.FailNow() } pt, err := Decrypt(prv2, ct) if err != nil { fmt.Println(err.Error()) t.FailNow() } if !bytes.Equal(pt, message) { fmt.Println("ecies: plaintext doesn't match message") t.FailNow() } _, err = Decrypt(prv1, pt) if err == nil { fmt.Println("ecies: encryption should not have succeeded") t.FailNow() } } on value='2017Q3'>2017Q3 FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/net
Commit message (Expand)AuthorAgeFilesLines
* broken for fetch, logged by bentoTrevor Johnson2002-05-261-0/+2
* (1) Support IPv6 transport.Jun Kuriyama2002-05-252-2/+9
* Make sure the port uses the static openh323 libraryRoger Hardiman2002-05-251-1/+2
* Use the static openh323 librariesRoger Hardiman2002-05-251-1/+2
* Make sure we use the static openh323 libraries (as the openh323Roger Hardiman2002-05-252-1/+46
* Reset MAINTAINER, as maintainers mail address bounces:Anders Nordby2002-05-251-1/+1
* Upgrade to version 1.0.38.Dmitry Sivachenko2002-05-256-6/+12
* Add CPhone, a H323 VoIP and Video Conferencing program which canRoger Hardiman2002-05-247-0/+79
* add py-spreadmodule 1.2Ying-Chieh Liao2002-05-246-0/+36
* upgrade to 0.3.1Ying-Chieh Liao2002-05-243-14/+18
* add p5-Spread-Session 0.2Ying-Chieh Liao2002-05-248-0/+83
* Add more files to pkg-plist and bump port revisionRoger Hardiman2002-05-246-3/+24
* Add back icqnix and pppload, which were prematurely deleted by will.Kris Kennaway2002-05-2421-0/+706
* Add gnomemeeting.schemaRoger Hardiman2002-05-243-0/+3
* Bump port revision as the openh323 libraries have been updatedRoger Hardiman2002-05-243-3/+12
* Add USE_BISON so the port builds on bento. This is needed becauseRoger Hardiman2002-05-241-0/+1
* Add USE_BISON so the port builds on bento. This is needed becauseRoger Hardiman2002-05-241-0/+1
* upgrade to 3.0.5Ying-Chieh Liao2002-05-242-4/+4
* fix master siteYing-Chieh Liao2002-05-242-6/+6
* back out commit made comparing OSVERSION and use sed(1) to workaround perlPatrick Li2002-05-242-20/+3
* Take out debugging messages I added.David W. Chapman Jr.2002-05-241-4/+0
* Update maintainer's email to match what he uses on send-pr to avoidDavid W. Chapman Jr.2002-05-231-2/+2
* Ports policy: empty pkg-descr is prohibited. Just copy pkg-comment intoMaxim Sobolev2002-05-231-0/+1
* The version of web2ldap in ports/www/web2ldap is incompatible with theDirk Meyer2002-05-233-3/+10
* I forgot to note PR and Submitted-by on my last commit.SADA Kenji2002-05-231-0/+2
* - Move install directory from bin to sbinSADA Kenji2002-05-234-22/+24
* Add RUN_DEPENDSKevin Lo2002-05-231-0/+3
* Upgrade port to version 1.8.7.Dmitry Sivachenko2002-05-233-3/+3
* Update to 1.2.4Patrick Li2002-05-234-20/+22
* Fix ports for building with -current without perlPatrick Li2002-05-232-3/+20
* Fix MASTER_SITES and typosPatrick Li2002-05-233-4/+4
* Fix socket leak and bump PORTREVISION.Patrick Li2002-05-232-8/+10
* Don't build with FreeBSD's libtoolDavid W. Chapman Jr.2002-05-221-1/+0
* Upgrade to latest versionRoger Hardiman2002-05-226-9/+9
* Update to latest versionRoger Hardiman2002-05-222-3/+3
* Update to the latest release versionDoug Barton2002-05-222-4/+4
* Upgrade to latest version.Roger Hardiman2002-05-2216-84/+84
* Update to tcpcat-1.2.0.Peter Pentchev2002-05-222-3/+2
* Update to latest versionDavid W. Chapman Jr.2002-05-224-9/+4
* Fix autoconf and autoheader problemsDavid W. Chapman Jr.2002-05-211-0/+8
* Perl5 module to use the SMPP (Short Message Peer to Peer) protocol.John Hay2002-05-216-0/+40
* The ntp port now tracks the production branch, currently at 4.1.1a.Cy Schubert2002-05-216-12/+18
* Add ntp-devel which will track the ntp development branch.Cy Schubert2002-05-211-0/+1
* Update to 0.157Mario Sergio Fujikawa Ferreira2002-05-212-2/+2
* Update to 0.56Mario Sergio Fujikawa Ferreira2002-05-212-2/+2
* Update to 0.81.0Mario Sergio Fujikawa Ferreira2002-05-212-2/+2
* . Update to 1.2p1Greg Lewis2002-05-214-16/+19
* upgrade to 2.6.3Ying-Chieh Liao2002-05-202-2/+2
* Update to unified patch 19-9-0Vanilla I. Shu2002-05-202-3/+3
* upgrade to 4.7.2Ying-Chieh Liao2002-05-202-3/+3
* Upgrade to 7.9.4Masafumi Max NAKANE2002-05-203-5/+9
* Chase net-snmp4 repocopy.Jun Kuriyama2002-05-203-3/+3
* Depends on net-snmp4.Jun Kuriyama2002-05-202-2/+2
* I did not check this port works fine with net-snmp 5.x.Jun Kuriyama2002-05-202-2/+2
* Chase net-snmp library versionKris Kennaway2002-05-201-1/+1
* Chase net-snmp library versionKris Kennaway2002-05-201-1/+1
* Chase net-snmp library versionKris Kennaway2002-05-202-2/+2
* Back to betas...Update to GNOME 2.0 beta 5.Joe Marcus Clarke2002-05-201-1/+1
* Upgrade to 1.19Andrey A. Chernov2002-05-192-3/+3
* Fix master sitesPatrick Li2002-05-181-1/+1
* Add missing files to plistPatrick Li2002-05-181-0/+2
* BROKEN: Does not package correctlyKris Kennaway2002-05-181-0/+2
* BROKEN: Does not fetchKris Kennaway2002-05-181-0/+2
* BROKEN: Does not buildKris Kennaway2002-05-181-0/+2
* BROKEN: Cannot find libxml2 dependencyKris Kennaway2002-05-181-0/+2
* BROKEN: Does not package correctlyKris Kennaway2002-05-182-0/+4
* BROKEN: Incorrect checksumKris Kennaway2002-05-182-4/+8
* BROKEN: Does not buildKris Kennaway2002-05-181-0/+2
* BROKEN: Does not find tcl correctlyKris Kennaway2002-05-181-0/+2
* BROKEN: Does not buildKris Kennaway2002-05-171-0/+2
* Remove BROKEN tag; this package appears to build correctly now.Kris Kennaway2002-05-171-4/+0
* Link with libkvm explicitly to unbreak build on 4-stable.Jun Kuriyama2002-05-171-1/+1
* Needs perl to build.David E. O'Brien2002-05-172-0/+3
* Upgrade to version 1.11.Dmitry Sivachenko2002-05-172-2/+2
* add serveez 0.1.3Ying-Chieh Liao2002-05-166-0/+105
* Open /dev/null as stdout and stderr before envoking sendmailBrian Somers2002-05-164-8/+78
* Add new ports.Norikatsu Shigemura2002-05-1620-0/+302
* Add new ports.Norikatsu Shigemura2002-05-162-0/+43
* Hide bin/kotalkd behind KTALKD PLIST_SUB moniker. Allow UTMP to beWill Andrews2002-05-164-6/+6
* Fix building on -currentDavid W. Chapman Jr.2002-05-161-0/+12
* Fix -current buildingDavid W. Chapman Jr.2002-05-161-1/+2
* Fix building under -currentDavid W. Chapman Jr.2002-05-151-3/+32
* Update to 1.1.1Mario Sergio Fujikawa Ferreira2002-05-152-3/+3
* Upgrade to 5.0.1.Jun Kuriyama2002-05-1510-188/+264
* Connect net-snmp4 (4.x series of ucd-snmp).Jun Kuriyama2002-05-151-0/+1
* Add USE_GMAKE=yesKris Kennaway2002-05-152-0/+2
* Update to 0.58.Joe Marcus Clarke2002-05-1510-180/+70
* Update to latest cvs version which allows removal of local patchesDavid W. Chapman Jr.2002-05-154-32/+23
* Remove unneeded configure argDavid W. Chapman Jr.2002-05-151-2/+1
* Add samba-tng whose goal is to provide the complete functionality ofDavid W. Chapman Jr.2002-05-157-0/+193
* s/DOCSDIR/PORTDOCS/gYing-Chieh Liao2002-05-151-3/+3
* add socat 1.0.4.2Ying-Chieh Liao2002-05-146-0/+39
* Update to 0.4.8pl9.Maxim Sobolev2002-05-147-117/+144
* Update to 0.9.28Patrick Li2002-05-143-2/+3
* install FAQ and READMEYing-Chieh Liao2002-05-142-1/+10
* Install audit VFS module.David W. Chapman Jr.2002-05-131-2/+2
* GNOME policy:Maxim Sobolev2002-05-132-35/+35
* Fix breakage introduced by the gettext conversion.Maxim Sobolev2002-05-131-2/+5
* Update to 0.8.7.Joe Marcus Clarke2002-05-138-53/+42
* Chase a repack. Seems two files were just dropped and the rest wasAkinori MUSHA2002-05-133-3/+2
* Update to GNOME 2.0 RC2.Joe Marcus Clarke2002-05-121-1/+1
* Remove the net/ncat and net/proxy ports, for which the source distributionJason Evans2002-05-1211-89/+0
* Upgrade to 2.9.18pre11Dmitry Sivachenko2002-05-112-3/+3
* Add freeradiusBrian Somers2002-05-111-0/+1
* Fix ldap optionDavid W. Chapman Jr.2002-05-111-1/+1
* Add freeradius, a RADIUS daemon implementation compatible withBrian Somers2002-05-1114-0/+590
* Fix logbase once againDavid W. Chapman Jr.2002-05-111-1/+1
* Add missing VFS patchesDavid W. Chapman Jr.2002-05-102-0/+51
* Re-enable recycle bin supportDavid W. Chapman Jr.2002-05-109-23/+119
* add missing patch fileYing-Chieh Liao2002-05-105-0/+55
* remove unnecessary patch (already in rc9)Ying-Chieh Liao2002-05-105-65/+0
* upgrade to 3.0.1.r9Ying-Chieh Liao2002-05-1015-70/+15
* Update to 0.55Mario Sergio Fujikawa Ferreira2002-05-102-2/+2
* Update to 0.80.5Mario Sergio Fujikawa Ferreira2002-05-103-3/+11
* o Stop stripping Linux binary for now since it is returning:Mario Sergio Fujikawa Ferreira2002-05-101-1/+1
* Add a kluge to comment out ktalkd files if /var/run/utmp isDmitry Sivachenko2002-05-094-22/+42
* Update to 1.7.10.Akinori MUSHA2002-05-092-2/+2
* Update to 1.4.4.1.Akinori MUSHA2002-05-093-36/+14
* Fix format string vulnerability as noted at:Chris D. Faulhaber2002-05-0910-0/+70
* Remove smbtcpdump. AFAIK all this functionality is now in the officalDavid E. O'Brien2002-05-097-359/+0
* To ports@freebsd.org.David E. O'Brien2002-05-097-7/+7
* Update to 1.4.3David W. Chapman Jr.2002-05-093-50/+38
* Update to 1.6David W. Chapman Jr.2002-05-082-2/+2
* Mark FORBIDDEN.Jacques Vidrine2002-05-081-0/+2
* Update to 2.9.1Patrick Li2002-05-076-6/+6
* Chase openssl shlib version increase.Maxim Sobolev2002-05-071-1/+1
* Upgrade to 4.2.5.Jun Kuriyama2002-05-074-6/+4
* Update to 4.1Patrick Li2002-05-072-2/+2
* Update to 2.2.4David W. Chapman Jr.2002-05-077-101/+20
* o Separate donkey script wrapper and donkey-real binary: wrapperMario Sergio Fujikawa Ferreira2002-05-076-6/+8
* Freshen MASTER_SITES to allow distfile to fetchKris Kennaway2002-05-051-1/+1
* Upgrade to 1.0.37Dmitry Sivachenko2002-05-0518-76/+86
* Update to 0.5.2Patrick Li2002-05-053-13/+3
* Update to 0.3.1Patrick Li2002-05-052-2/+2
* Upgrade to version 3.8.Archie Cobbs2002-05-042-2/+2
* Update to 0.8.6Mario Sergio Fujikawa Ferreira2002-05-043-32/+0
* Delete freeradius-devel -- it's based on a long-obsolete, exploitableGarrett Wollman2002-05-048-155/+0
* Update to 0.8.6Mario Sergio Fujikawa Ferreira2002-05-04