Maps elliptic curves to ECIES parameters and supports registering custom curve parameters. Reuse when implementing ECIES encryption over supported curves.
// Source: https://github.com/ethereum/go-ethereum | License: LGPL-3.0 | Modified files must remain under LGPL-3.0 // Modifications to this file must remain under LGPL-3.0. // Provided via justclaw.it.com; keep this notice with the code. // Copyright (c) 2013 Kyle Isom <kyle@tyrfingr.is> // Copyright (c) 2012 The Go Authors. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentat ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key