< prev index next >

src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11TlsRsaPremasterSecretGenerator.java

Print this page

        

*** 122,132 **** O_GENERATE, CKO_SECRET_KEY, CKK_GENERIC_SECRET, new CK_ATTRIBUTE[0]); long keyID = token.p11.C_GenerateKey(session.id(), new CK_MECHANISM(mechanism, version), attributes); SecretKey key = P11Key.secretKey(session, ! keyID, "TlsRsaPremasterSecret", 48 << 3, attributes); return key; } catch (PKCS11Exception e) { throw new ProviderException( "Could not generate premaster secret", e); } finally { --- 122,132 ---- O_GENERATE, CKO_SECRET_KEY, CKK_GENERIC_SECRET, new CK_ATTRIBUTE[0]); long keyID = token.p11.C_GenerateKey(session.id(), new CK_MECHANISM(mechanism, version), attributes); SecretKey key = P11Key.secretKey(session, ! keyID, "TlsRsaPremasterSecret", 48 << 3, attributes, true); return key; } catch (PKCS11Exception e) { throw new ProviderException( "Could not generate premaster secret", e); } finally {
< prev index next >