Searched refs:sharedSecret (Results 1 - 6 of 6) sorted by relevance

/openjdk7/jdk/src/share/classes/javax/crypto/
H A DKeyAgreementSpi.java150 * <code>sharedSecret</code>, beginning at <code>offset</code> inclusive.
152 * <p>If the <code>sharedSecret</code> buffer is too small to hold the
163 * @param sharedSecret the buffer for the shared secret
164 * @param offset the offset in <code>sharedSecret</code> where the
167 * @return the number of bytes placed into <code>sharedSecret</code>
174 protected abstract int engineGenerateSecret(byte[] sharedSecret, argument
H A DKeyAgreement.java575 * <code>sharedSecret</code>, beginning at <code>offset</code> inclusive.
577 * <p>If the <code>sharedSecret</code> buffer is too small to hold the
587 * @param sharedSecret the buffer for the shared secret
588 * @param offset the offset in <code>sharedSecret</code> where the
591 * @return the number of bytes placed into <code>sharedSecret</code>
598 public final int generateSecret(byte[] sharedSecret, int offset) argument
602 return spi.engineGenerateSecret(sharedSecret, offset);
/openjdk7/jdk/src/share/classes/sun/security/ec/
H A DECDHKeyAgreement.java138 protected int engineGenerateSecret(byte[] sharedSecret, int argument
140 if (offset + secretLen > sharedSecret.length) {
142 + " bytes, only " + (sharedSecret.length - offset) + " available");
145 System.arraycopy(secret, 0, sharedSecret, offset, secret.length);
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11ECDHKeyAgreement.java152 protected int engineGenerateSecret(byte[] sharedSecret, int argument
154 if (offset + secretLen > sharedSecret.length) {
156 + " bytes, only " + (sharedSecret.length - offset) + " available");
159 System.arraycopy(secret, 0, sharedSecret, offset, secret.length);
H A DP11KeyAgreement.java235 protected int engineGenerateSecret(byte[] sharedSecret, int argument
238 int n = multiPartyAgreement.generateSecret(sharedSecret, offset);
242 if (offset + secretLen > sharedSecret.length) {
244 + " bytes, only " + (sharedSecret.length - offset) + " available");
247 System.arraycopy(secret, 0, sharedSecret, offset, secret.length);
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DDHKeyAgreement.java256 * <code>sharedSecret</code>, beginning at <code>offset</code>.
258 * <p>If the <code>sharedSecret</code> buffer is too small to hold the
269 * @param sharedSecret the buffer for the shared secret
270 * @param offset the offset in <code>sharedSecret</code> where the
273 * @return the number of bytes placed into <code>sharedSecret</code>
280 protected int engineGenerateSecret(byte[] sharedSecret, int offset) argument
288 if (sharedSecret == null) {
295 if ((sharedSecret.length - offset) < expectedLen) {
320 System.arraycopy(secret, 0, sharedSecret, offset,
325 System.arraycopy(secret, 0, sharedSecret,
[all...]

Completed in 45 milliseconds