Uses of Interface
org.mozilla.jss.crypto.SymmetricKey
Packages that use SymmetricKey
Package
Description
Generic cryptographic operations, such as signing and key pair generation.
A facility for encrypting and decrypting small amounts of data with
a symmetric key.
-
Uses of SymmetricKey in org.mozilla.jss.crypto
Fields in org.mozilla.jss.crypto declared as SymmetricKeyMethods in org.mozilla.jss.crypto that return SymmetricKeyModifier and TypeMethodDescriptionKeyGenerator.clone
(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.CryptoToken.cloneKey
(SymmetricKey key) Clones a SymmetricKey from a different token onto this token.SymmetricKeyDeriver.derive()
KeyGenerator.generate()
Generates a symmetric key.private SymmetricKey
KBKDFDerivedKey.getKeyFromHandle
(SymmetricKey parentKey, long mech, boolean temporary) CryptoStore.getSymmetricKeys()
Returns all symmetric keys stored on this token.KeyWrapper.unwrapSymmetric
(byte[] wrapped, SymmetricKey.Type type, int keyLength) Unwraps a key and allows it to be used for all operations.KeyWrapper.unwrapSymmetric
(byte[] wrapped, SymmetricKey.Type type, SymmetricKey.Usage usage, int keyLength) KeyWrapper.unwrapSymmetricPerm
(byte[] wrapped, SymmetricKey.Type type, int keyLength) Unwraps a key and allows it to be used for all operations.KeyWrapper.unwrapSymmetricPerm
(byte[] wrapped, SymmetricKey.Type type, SymmetricKey.Usage usage, int keyLength) Methods in org.mozilla.jss.crypto with parameters of type SymmetricKeyModifier and TypeMethodDescriptionKeyGenerator.clone
(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.CryptoToken.cloneKey
(SymmetricKey key) Clones a SymmetricKey from a different token onto this token.private SymmetricKey
KBKDFDerivedKey.getKeyFromHandle
(SymmetricKey parentKey, long mech, boolean temporary) abstract void
Cipher.initDecrypt
(SymmetricKey key) Initializes a decryption context with a symmetric key.abstract void
Cipher.initDecrypt
(SymmetricKey key, AlgorithmParameterSpec parameters) Initializes a decryption context with a symmetric key and algorithm parameters.void
SymmetricKeyDeriver.initDerive
(SymmetricKey baseKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) void
SymmetricKeyDeriver.initDerive
(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) abstract void
Cipher.initEncrypt
(SymmetricKey key) Initializes a encryption context with a symmetric key.abstract void
Cipher.initEncrypt
(SymmetricKey key, AlgorithmParameterSpec parameters) Initializes an encryption context with a symmetric key and algorithm parameters.abstract void
JSSMessageDigest.initHMAC
(SymmetricKey key) Initializes an HMAC digest with the given symmetric key.void
KeyWrapper.initUnwrap
(SymmetricKey unwrappingKey, AlgorithmParameterSpec parameters) void
KeyWrapper.initWrap
(SymmetricKey wrappingKey, AlgorithmParameterSpec parameters) byte[]
KeyWrapper.wrap
(SymmetricKey toBeWrapped) Constructors in org.mozilla.jss.crypto with parameters of type SymmetricKey -
Uses of SymmetricKey in org.mozilla.jss.pkcs11
Classes in org.mozilla.jss.pkcs11 that implement SymmetricKeyFields in org.mozilla.jss.pkcs11 declared as SymmetricKeyModifier and TypeFieldDescriptionprivate SymmetricKey
PK11SymmetricKeyDeriver.baseKey
private SymmetricKey
PK11Cipher.key
private SymmetricKey
PK11SymmetricKeyDeriver.secondaryKey
private SymmetricKey
PK11KeyWrapper.symKey
Methods in org.mozilla.jss.pkcs11 that return SymmetricKeyModifier and TypeMethodDescriptionPK11KeyGenerator.clone
(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.static SymmetricKey
PK11KeyGenerator.clone
(SymmetricKey key, PK11Token token) Allows a SymmetricKey to be cloned on a different token.PK11Token.cloneKey
(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.PK11SymmetricKeyDeriver.derive()
private SymmetricKey
PK11SymmetricKeyDeriver.deriveSymKey
(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMechanism, byte[] param, byte[] iv, long targetMechanism, long operation, long keySize) PK11KeyGenerator.generate()
Generates the key.private static SymmetricKey
PK11KeyGenerator.generateKBKDF
(PK11Token token, PK11SymKey baseKeyObj, long algorithm, NativeProxy pointer, long pointer_size, long derivedKeyAlgorithm, int strength, int opFlags, boolean temporary, int sensitive) A native method to generate a key using KBKDF.private static SymmetricKey
PK11KeyGenerator.generateNormal
(PK11Token token, KeyGenAlgorithm algorithm, int strength, int opFlags, boolean temporary, int sensitive) A native method to generate a non-PBE key.private static SymmetricKey
PK11KeyGenerator.generatePBE
(PK11Token token, KeyGenAlgorithm algorithm, EncryptionAlgorithm encAlg, HMACAlgorithm hashAlg, byte[] pass, byte[] salt, int iterationCount) A native method to generate a PBE key.PK11Store.getSymmetricKeys()
private static SymmetricKey
PK11KeyGenerator.nativeClone
(PK11Token token, SymmetricKey toBeCloned) PK11SymmetricKeyDeriver.nativeDeriveSymKey
(PK11Token token, SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMechanism, byte[] param, byte[] iv, long targetMechanism, long operation, long keySize) private static SymmetricKey
PK11KeyWrapper.nativeUnwrapSymPlaintext
(PK11Token token, byte[] wrappedKey, Algorithm type, int usageEnum, boolean temporary) private static SymmetricKey
PK11KeyWrapper.nativeUnwrapSymWithPriv
(PK11Token token, PrivateKey unwrappingKey, byte[] wrappedKey, KeyWrapAlgorithm alg, Algorithm type, int keyLen, NativeProxy params, long params_size, int usageEnum) Unwrap a symmetric with a private.private static SymmetricKey
PK11KeyWrapper.nativeUnwrapSymWithSym
(PK11Token token, SymmetricKey unwrappingKey, byte[] wrappedKey, KeyWrapAlgorithm alg, Algorithm type, int keyLen, byte[] IV, int usageEnum, boolean temporary) Unwrap a symmetric with a symmetric.PK11KeyWrapper.unwrapSymmetric
(byte[] wrapped, SymmetricKey.Type type, int keyLen) private SymmetricKey
PK11KeyWrapper.unwrapSymmetric
(byte[] wrapped, SymmetricKey.Type type, int usageEnum, int keyLen) PK11KeyWrapper.unwrapSymmetric
(byte[] wrapped, SymmetricKey.Type type, SymmetricKey.Usage usage, int keyLen) PK11KeyWrapper.unwrapSymmetricPerm
(byte[] wrapped, SymmetricKey.Type type, int keyLen) private SymmetricKey
PK11KeyWrapper.unwrapSymmetricPerm
(byte[] wrapped, SymmetricKey.Type type, int usageEnum, int keyLen) PK11KeyWrapper.unwrapSymmetricPerm
(byte[] wrapped, SymmetricKey.Type type, SymmetricKey.Usage usage, int keyLen) Methods in org.mozilla.jss.pkcs11 with parameters of type SymmetricKeyModifier and TypeMethodDescriptionprivate void
PK11Cipher.checkKey
(SymmetricKey key) Checks for null, makes sure the key lives on the correct token, makes sure it is a PKCS #11 key, makes sure it's the right type for this algorithm.private void
PK11KeyWrapper.checkWrappee
(SymmetricKey symKey) Makes sure the key lives on the right token.private void
PK11KeyWrapper.checkWrapper
(SymmetricKey key) Makes sure the key lives on the token and is right for the algorithm.PK11KeyGenerator.clone
(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.static SymmetricKey
PK11KeyGenerator.clone
(SymmetricKey key, PK11Token token) Allows a SymmetricKey to be cloned on a different token.PK11Token.cloneKey
(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.private SymmetricKey
PK11SymmetricKeyDeriver.deriveSymKey
(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMechanism, byte[] param, byte[] iv, long targetMechanism, long operation, long keySize) private static CipherContextProxy
PK11Cipher.initContext
(boolean encrypt, SymmetricKey key, EncryptionAlgorithm alg, byte[] IV, boolean padded) private static CipherContextProxy
PK11Cipher.initContextWithKeyBits
(boolean encrypt, SymmetricKey key, EncryptionAlgorithm alg, byte[] IV, int keyBits, boolean padded) void
PK11Cipher.initDecrypt
(SymmetricKey key) void
PK11Cipher.initDecrypt
(SymmetricKey key, AlgorithmParameterSpec parameters) Deprecated.isPadded() in EncryptionAlgorithm has been deprecatedvoid
PK11SymmetricKeyDeriver.initDerive
(SymmetricKey baseKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) void
PK11SymmetricKeyDeriver.initDerive
(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) void
PK11Cipher.initEncrypt
(SymmetricKey key) void
PK11Cipher.initEncrypt
(SymmetricKey key, AlgorithmParameterSpec parameters) Deprecated.isPadded() in EncryptionAlgorithm has been deprecatedvoid
PK11MessageDigest.initHMAC
(SymmetricKey key) void
PK11KeyWrapper.initUnwrap
(SymmetricKey unwrappingKey, AlgorithmParameterSpec parameters) void
PK11KeyWrapper.initWrap
(SymmetricKey wrappingKey, AlgorithmParameterSpec parameters) private static SymmetricKey
PK11KeyGenerator.nativeClone
(PK11Token token, SymmetricKey toBeCloned) PK11SymmetricKeyDeriver.nativeDeriveSymKey
(PK11Token token, SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMechanism, byte[] param, byte[] iv, long targetMechanism, long operation, long keySize) private static PrivateKey
PK11KeyWrapper.nativeUnwrapPrivWithSym
(PK11Token token, SymmetricKey unwrappingKey, byte[] wrappedKey, KeyWrapAlgorithm alg, Algorithm type, byte[] publicValue, byte[] IV, boolean temporary) Unwrap a private with a symmetric.private static SymmetricKey
PK11KeyWrapper.nativeUnwrapSymWithSym
(PK11Token token, SymmetricKey unwrappingKey, byte[] wrappedKey, KeyWrapAlgorithm alg, Algorithm type, int keyLen, byte[] IV, int usageEnum, boolean temporary) Unwrap a symmetric with a symmetric.private static byte[]
PK11KeyWrapper.nativeWrapPrivWithSym
(PK11Token token, PrivateKey toBeWrapped, SymmetricKey wrappingKey, KeyWrapAlgorithm alg, byte[] IV) Wrap a private with a symmetricprivate static byte[]
PK11KeyWrapper.nativeWrapSymWithPub
(PK11Token token, SymmetricKey toBeWrapped, PublicKey wrappingKey, KeyWrapAlgorithm alg, NativeProxy params, long params_size) Wrap a symmetric with a publicprivate static byte[]
PK11KeyWrapper.nativeWrapSymWithSym
(PK11Token token, SymmetricKey toBeWrapped, SymmetricKey wrappingKey, KeyWrapAlgorithm alg, byte[] IV) Wrap a symmetric with a symmetricbyte[]
PK11KeyWrapper.wrap
(SymmetricKey toBeWrapped) Method parameters in org.mozilla.jss.pkcs11 with type arguments of type SymmetricKeyModifier and TypeMethodDescriptionprotected void
PK11Store.putSymKeysInVector
(Vector<SymmetricKey> symKeys) -
Uses of SymmetricKey in org.mozilla.jss.SecretDecoderRing
Methods in org.mozilla.jss.SecretDecoderRing that return SymmetricKeyModifier and TypeMethodDescriptionprivate SymmetricKey
KeyManager.lookupKeyNative
(CryptoToken token, EncryptionAlgorithm alg, byte[] keyid) private SymmetricKey
KeyManager.lookupUniqueNamedKeyNative
(CryptoToken token, EncryptionAlgorithm alg, String nickname) Methods in org.mozilla.jss.SecretDecoderRing with parameters of type SymmetricKeyModifier and TypeMethodDescriptionprivate void
KeyManager.deleteKeyNative
(CryptoToken token, SymmetricKey key)