Searched refs:p11Key (Results 1 - 12 of 12) sorted by relevance

/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DKeyCache.java80 P11Key p11Key = (P11Key)strongCache.get(new IdentityWrapper(key));
81 if (p11Key != null) {
82 return p11Key;
92 synchronized void put(Key key, P11Key p11Key) { argument
93 strongCache.put(new IdentityWrapper(key), p11Key);
100 map.put(key, p11Key);
H A DP11KeyFactory.java86 P11Key p11Key;
88 p11Key = (P11Key)engineTranslateKey(key);
94 if (p11Key.isPublic()) {
95 return (T)implGetPublicKeySpec(p11Key, keySpec, session);
97 return (T)implGetPrivateKeySpec(p11Key, keySpec, session);
117 P11Key p11Key = (P11Key)key;
118 if (p11Key.token == token) {
123 P11Key p11Key = token.privateCache.get(key);
124 if (p11Key != null) {
125 return p11Key;
[all...]
H A DP11SecretKeyFactory.java146 P11Key p11Key = (P11Key)key;
147 if (p11Key.token == token) {
153 p11Key.keyID, extraAttrs);
154 p11Key = (P11Key) (P11Key.secretKey(session,
155 newKeyID, p11Key.algorithm, p11Key.keyLength,
164 return p11Key;
167 P11Key p11Key = token.secretCache.get(key);
168 if (p11Key != null) {
169 return p11Key;
[all...]
H A DP11RSACipher.java92 private P11Key p11Key; field in class:P11RSACipher
187 p11Key = P11KeyFactory.convertKey(token, key, algorithm);
194 if (p11Key.isPublic() == false) {
202 if (p11Key.isPrivate() == false) {
212 if (p11Key.isPublic()) {
214 } else if (p11Key.isPrivate()) {
217 throw new InvalidKeyException("Unknown key type: " + p11Key);
219 int n = (p11Key.length() + 7) >> 3;
289 p11.C_EncryptInit(session.id(), ckMechanism, p11Key.keyID);
292 p11.C_DecryptInit(session.id(), ckMechanism, p11Key
[all...]
H A DP11TlsMasterSecretGenerator.java61 private P11Key p11Key; field in class:P11TlsMasterSecretGenerator
87 p11Key = P11SecretKeyFactory.convertKey(token, key, null);
110 if (p11Key.getAlgorithm().equals("TlsRsaPremasterSecret")) {
138 new CK_MECHANISM(mechanism, params), p11Key.keyID, attributes);
H A DP11TlsPrfGenerator.java68 private P11Key p11Key; field in class:P11TlsPrfGenerator
93 p11Key = P11SecretKeyFactory.convertKey(token, key, null);
128 (session.id(), new CK_MECHANISM(mechanism), p11Key.keyID);
150 new CK_MECHANISM(mechanism, params), p11Key.keyID, null);
H A DP11Mac.java85 private P11Key p11Key; field in class:P11Mac
165 if (p11Key != null) {
167 (session.id(), ckMechanism, p11Key.keyID);
203 p11Key = P11SecretKeyFactory.convertKey(token, key, algorithm);
H A DP11TlsKeyMaterialGenerator.java68 private P11Key p11Key; field in class:P11TlsKeyMaterialGenerator
92 p11Key = P11SecretKeyFactory.convertKey
165 new CK_MECHANISM(mechanism, params), p11Key.keyID, attributes);
H A DP11Signature.java97 private P11Key p11Key; field in class:P11Signature
275 signature = new byte[(p11Key.length() + 7) >> 3];
303 new CK_MECHANISM(mechanism), p11Key.keyID);
306 new CK_MECHANISM(mechanism), p11Key.keyID);
357 if (keyAlgorithm.equals("RSA") && publicKey != p11Key) {
368 p11Key = P11KeyFactory.convertKey(token, publicKey, keyAlgorithm);
379 if (keyAlgorithm.equals("RSA") && privateKey != p11Key) {
390 p11Key = P11KeyFactory.convertKey(token, privateKey, keyAlgorithm);
621 int len = (p11Key.length() + 7) >> 3;
H A DP11Digest.java253 P11Key p11Key = (P11Key)key;
254 if (p11Key.token != token) {
262 token.p11.C_DigestKey(session.id(), p11Key.keyID);
H A DP11Cipher.java135 private P11Key p11Key; field in class:P11Cipher
380 p11Key = P11SecretKeyFactory.convertKey(token, key, keyAlgorithm);
428 token.p11.C_EncryptInit(session.id(), mechParams, p11Key.keyID);
430 token.p11.C_DecryptInit(session.id(), mechParams, p11Key.keyID);
H A DP11KeyStore.java1678 P11Key p11Key = (P11Key)key;
1679 if (p11Key.tokenObject && (p11Key.token == this.token)) {
1680 updateP11Pkey(alias, null, p11Key);
1784 P11Key p11Key = (P11Key)key;
1785 if (p11Key.token != this.token) {
1801 updateP11Pkey(alias, netscapeDB, p11Key);

Completed in 48 milliseconds