3909N/A * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 1545N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1545N/A * This code is free software; you can redistribute it and/or modify it 1545N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 1545N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 1545N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1545N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1545N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1545N/A * version 2 for more details (a copy is included in the LICENSE file that 1545N/A * You should have received a copy of the GNU General Public License version 1545N/A * 2 along with this work; if not, write to the Free Software Foundation, 1545N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1545N/A * Throws an arbitrary Java exception. 1545N/A * Deep free of the ECParams struct 1545N/A // Use B_FALSE to free the SECItem->data element, but not the SECItem itself 1545N/A * Class: sun_security_ec_ECKeyPairGenerator 1545N/A * Method: generateECKeyPair 1545N/A // Initialize the ECParams struct 1545N/A // Fill a new ECParams using the supplied OID 1545N/A // Copy seed from Java to native buffer 1545N/A // Generate the new keypair (using the supplied seed) 1545N/A // If the array is a copy then we must write back our changes 1545N/A // Don't free privKey->privateValue and privKey->publicValue 1545N/A * Class: sun_security_ec_ECKeyPairGenerator 1545N/A // Copy bytes from a native SECItem buffer to Java byte array 1545N/A // Use B_FALSE to free only the SECItem->data 1545N/A * Class: sun_security_ec_ECDSASignature 1545N/A // Copy digest from Java to native buffer 1545N/A // Initialize the ECParams struct 1545N/A // Fill a new ECParams using the supplied OID 1545N/A // Extract private key data 1545N/A // Prepare a buffer for the signature (twice the key length) 1545N/A // Copy seed from Java to native buffer 1545N/A // Sign the digest (using the supplied seed) 1545N/A // Copy data from native buffer 1545N/A * Class: sun_security_ec_ECDSASignature 1545N/A * Method: verifySignedDigest 1545N/A // Copy signedDigest from Java to native buffer 1545N/A // Copy digest from Java to native buffer 1545N/A // Initialize the ECParams struct 1545N/A // Fill a new ECParams using the supplied OID 1545N/A * Class: sun_security_ec_ECDHKeyAgreement 1545N/A // Extract private key value 1545N/A // Extract public key value 1545N/A // Initialize the ECParams struct 1545N/A // Fill a new ECParams using the supplied OID 1545N/A // Prepare a buffer for the secret 1545N/A // Copy bytes from the SECItem buffer to a Java byte array 1545N/A // Free the SECItem data buffer