protected StandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) { setCipherAlgorithm(cipherAlgorithm); setHashAlgorithm(hashAlgorithm); setKeySize(keyBits); setBlockSize(blockSize); setCipherProvider(cipherAlgorithm.provider); setFlags(flagCryptoAPI.setBoolean(0, true) | flagAES.setBoolean(0, cipherAlgorithm.provider == CipherProvider.aes)); // see http://msdn.microsoft.com/en-us/library/windows/desktop/bb931357(v=vs.85).aspx for a full list // setCspName("Microsoft Enhanced RSA and AES Cryptographic Provider"); }
setSizeExtra(is.readInt()); setCipherAlgorithm(CipherAlgorithm.fromEcmaId(is.readInt())); setHashAlgorithm(HashAlgorithm.fromEcmaId(is.readInt())); int keySize = is.readInt(); if (keySize == 0) {
protected StandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) { setCipherAlgorithm(cipherAlgorithm); setHashAlgorithm(hashAlgorithm); setKeySize(keyBits); setBlockSize(blockSize); setCipherProvider(cipherAlgorithm.provider); setFlags(flagCryptoAPI.setBoolean(0, true) | flagAES.setBoolean(0, cipherAlgorithm.provider == CipherProvider.aes)); // see http://msdn.microsoft.com/en-us/library/windows/desktop/bb931357(v=vs.85).aspx for a full list // setCspName("Microsoft Enhanced RSA and AES Cryptographic Provider"); }
setSizeExtra(is.readInt()); setCipherAlgorithm(CipherAlgorithm.fromEcmaId(is.readInt())); setHashAlgorithm(HashAlgorithm.fromEcmaId(is.readInt())); int keySize = is.readInt(); if (keySize == 0) {