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 SymmetricKeyKBKDFDerivedKey.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 SymmetricKeyKBKDFDerivedKey.getKeyFromHandle(SymmetricKey parentKey, long mech, boolean temporary) abstract voidCipher.initDecrypt(SymmetricKey key) Initializes a decryption context with a symmetric key.abstract voidCipher.initDecrypt(SymmetricKey key, AlgorithmParameterSpec parameters) Initializes a decryption context with a symmetric key and algorithm parameters.voidSymmetricKeyDeriver.initDerive(SymmetricKey baseKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) voidSymmetricKeyDeriver.initDerive(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) abstract voidCipher.initEncrypt(SymmetricKey key) Initializes a encryption context with a symmetric key.abstract voidCipher.initEncrypt(SymmetricKey key, AlgorithmParameterSpec parameters) Initializes an encryption context with a symmetric key and algorithm parameters.abstract voidJSSMessageDigest.initHMAC(SymmetricKey key) Initializes an HMAC digest with the given symmetric key.voidKeyWrapper.initUnwrap(SymmetricKey unwrappingKey, AlgorithmParameterSpec parameters) voidKeyWrapper.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 SymmetricKeyPK11SymmetricKeyDeriver.baseKeyprivate SymmetricKeyPK11Cipher.keyprivate SymmetricKeyPK11SymmetricKeyDeriver.secondaryKeyprivate SymmetricKeyPK11KeyWrapper.symKeyMethods in org.mozilla.jss.pkcs11 that return SymmetricKeyModifier and TypeMethodDescriptionPK11KeyGenerator.clone(SymmetricKey key) Allows a SymmetricKey to be cloned on a different token.static SymmetricKeyPK11KeyGenerator.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 SymmetricKeyPK11SymmetricKeyDeriver.deriveSymKey(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMechanism, byte[] param, byte[] iv, long targetMechanism, long operation, long keySize) PK11KeyGenerator.generate()Generates the key.private static SymmetricKeyPK11KeyGenerator.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 SymmetricKeyPK11KeyGenerator.generateNormal(PK11Token token, KeyGenAlgorithm algorithm, int strength, int opFlags, boolean temporary, int sensitive) A native method to generate a non-PBE key.private static SymmetricKeyPK11KeyGenerator.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 SymmetricKeyPK11KeyGenerator.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 SymmetricKeyPK11KeyWrapper.nativeUnwrapSymPlaintext(PK11Token token, byte[] wrappedKey, Algorithm type, int usageEnum, boolean temporary) private static SymmetricKeyPK11KeyWrapper.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 SymmetricKeyPK11KeyWrapper.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 SymmetricKeyPK11KeyWrapper.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 SymmetricKeyPK11KeyWrapper.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 voidPK11Cipher.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 voidPK11KeyWrapper.checkWrappee(SymmetricKey symKey) Makes sure the key lives on the right token.private voidPK11KeyWrapper.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 SymmetricKeyPK11KeyGenerator.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 SymmetricKeyPK11SymmetricKeyDeriver.deriveSymKey(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMechanism, byte[] param, byte[] iv, long targetMechanism, long operation, long keySize) private static CipherContextProxyPK11Cipher.initContext(boolean encrypt, SymmetricKey key, EncryptionAlgorithm alg, byte[] IV, boolean padded) private static CipherContextProxyPK11Cipher.initContextWithKeyBits(boolean encrypt, SymmetricKey key, EncryptionAlgorithm alg, byte[] IV, int keyBits, boolean padded) voidPK11Cipher.initDecrypt(SymmetricKey key) voidPK11Cipher.initDecrypt(SymmetricKey key, AlgorithmParameterSpec parameters) Deprecated.isPadded() in EncryptionAlgorithm has been deprecatedvoidPK11SymmetricKeyDeriver.initDerive(SymmetricKey baseKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) voidPK11SymmetricKeyDeriver.initDerive(SymmetricKey baseKey, SymmetricKey secondaryKey, long deriveMech, byte[] param, byte[] iv, long targetMech, long operation, long keySize) voidPK11Cipher.initEncrypt(SymmetricKey key) voidPK11Cipher.initEncrypt(SymmetricKey key, AlgorithmParameterSpec parameters) Deprecated.isPadded() in EncryptionAlgorithm has been deprecatedvoidPK11MessageDigest.initHMAC(SymmetricKey key) voidPK11KeyWrapper.initUnwrap(SymmetricKey unwrappingKey, AlgorithmParameterSpec parameters) voidPK11KeyWrapper.initWrap(SymmetricKey wrappingKey, AlgorithmParameterSpec parameters) private static SymmetricKeyPK11KeyGenerator.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 PrivateKeyPK11KeyWrapper.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 SymmetricKeyPK11KeyWrapper.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 voidPK11Store.putSymKeysInVector(Vector<SymmetricKey> symKeys) -
Uses of SymmetricKey in org.mozilla.jss.SecretDecoderRing
Methods in org.mozilla.jss.SecretDecoderRing that return SymmetricKeyModifier and TypeMethodDescriptionprivate SymmetricKeyKeyManager.lookupKeyNative(CryptoToken token, EncryptionAlgorithm alg, byte[] keyid) private SymmetricKeyKeyManager.lookupUniqueNamedKeyNative(CryptoToken token, EncryptionAlgorithm alg, String nickname) Methods in org.mozilla.jss.SecretDecoderRing with parameters of type SymmetricKeyModifier and TypeMethodDescriptionprivate voidKeyManager.deleteKeyNative(CryptoToken token, SymmetricKey key)