@Test public void testCommonIV() throws OSException { OSCoreCtx ctx = new OSCoreCtx(master_secret, true, cipher, sid2, rid, kdf, 32, null, null); byte[] predictedCommonIV = { (byte) 0xbe, 0x35, (byte) 0xae, 0x29, 0x7d, 0x2d, (byte) 0xac, (byte) 0xe9, 0x10, (byte) 0xc5, 0x2e, (byte) 0x99, (byte) 0xf9 }; assertArrayEquals(predictedCommonIV, ctx.getCommonIV()); ctx = new OSCoreCtx(master_secret, true, cipher, sid, rid, kdf, 32, master_salt, null); byte[] predictedCommonIVSalt = { 0x46, 0x22, (byte) 0xd4, (byte) 0xdd, 0x6d, (byte) 0x94, 0x41, 0x68, (byte) 0xee, (byte) 0xfb, 0x54, (byte) 0x98, 0x7c }; assertArrayEquals(predictedCommonIVSalt, ctx.getCommonIV()); ctx = new OSCoreCtx(master_secret, true, cipher, sid, rid, kdf, 32, master_salt, context_id); byte[] predictedCommonIVContextID = { 0x2c, (byte) 0xa5, (byte) 0x8f, (byte) 0xb8, 0x5f, (byte) 0xf1, (byte) 0xb8, 0x1c, 0x0b, 0x71, (byte) 0x81, (byte) 0xb8, 0x5e }; assertArrayEquals(predictedCommonIVContextID, ctx.getCommonIV()); }
public byte[] getCommonIV() { return common_iv; }
OSCoreCtx { public byte[] getCommonIV() { return common_iv; } }
OSCoreCtx { public byte[] getCommonIV() { return common_iv; } OSCoreCtx(byte[] master_secret, boolean client);  OSCoreCtx(byte[] master_secret, boolean client, AlgorithmID alg, byte[] sender_id, byte[] recipient_id,
			AlgorithmID kdf, Integer replay_size, byte[] master_salt, byte[] contextId); }
OSCoreCtx { public byte[] getCommonIV() { return common_iv; } OSCoreCtx(byte[] master_secret, boolean client);  OSCoreCtx(byte[] master_secret, boolean client, AlgorithmID alg, byte[] sender_id, byte[] recipient_id,
			AlgorithmID kdf, Integer replay_size, byte[] master_salt, byte[] contextId); @Override int hashCode(); @Override boolean equals(Object o); byte[] getSenderKey(); byte[] getRecipientKey(); AlgorithmID getAlg(); synchronized int getSenderSeq(); synchronized int getReceiverSeq(); byte[] getLastBlockTag(); byte[] getSenderId(); byte[] getRecipientId(); byte[] getCommonIV(); int getIVLength(); int getRecipientReplaySize(); int getRecipientReplayWindow(); byte[] getMasterSecret(); byte[] getSalt(); AlgorithmID getKdf(); byte[] getIdContext(); byte[] getMessageIdContext(); boolean getIncludeContextId(); void setIncludeContextId(boolean includeContextId); void setIncludeContextId(byte[] overrideContextId); boolean getResponsesIncludePartialIV(); void setResponsesIncludePartialIV(boolean responsesIncludePartialIV); boolean getContextRederivationEnabled(); void setContextRederivationEnabled(boolean contextRederivationEnabled); int getMaxUnfragmentedSize(); void setMaxUnfragmentedSize(int maxUnfragmentedSize); String getContextIdString(); String getSenderIdString(); String getRecipientIdString(); int rollbackRecipientSeq(); int rollbackRecipientReplay(); synchronized void setSenderSeq(int seq); synchronized void setReceiverSeq(int seq); void setLastBlockTag(byte[] tag); void setSenderKey(byte[] senderKey); void setRecipientKey(byte[] recipientKey); void setSeqMax(int seqMax); String getUri(); ContextRederivation.PHASE getContextRederivationPhase(); void setContextRederivationPhase(ContextRederivation.PHASE contextRederivationPhase); synchronized void increaseSenderSeq(); synchronized void checkIncomingSeq(int seq); synchronized void rollBack(); Code getCoAPCode(); void setCoAPCode(Code coapCode); }
OSCoreCtx { public byte[] getCommonIV() { return common_iv; } OSCoreCtx(byte[] master_secret, boolean client);  OSCoreCtx(byte[] master_secret, boolean client, AlgorithmID alg, byte[] sender_id, byte[] recipient_id,
			AlgorithmID kdf, Integer replay_size, byte[] master_salt, byte[] contextId); @Override int hashCode(); @Override boolean equals(Object o); byte[] getSenderKey(); byte[] getRecipientKey(); AlgorithmID getAlg(); synchronized int getSenderSeq(); synchronized int getReceiverSeq(); byte[] getLastBlockTag(); byte[] getSenderId(); byte[] getRecipientId(); byte[] getCommonIV(); int getIVLength(); int getRecipientReplaySize(); int getRecipientReplayWindow(); byte[] getMasterSecret(); byte[] getSalt(); AlgorithmID getKdf(); byte[] getIdContext(); byte[] getMessageIdContext(); boolean getIncludeContextId(); void setIncludeContextId(boolean includeContextId); void setIncludeContextId(byte[] overrideContextId); boolean getResponsesIncludePartialIV(); void setResponsesIncludePartialIV(boolean responsesIncludePartialIV); boolean getContextRederivationEnabled(); void setContextRederivationEnabled(boolean contextRederivationEnabled); int getMaxUnfragmentedSize(); void setMaxUnfragmentedSize(int maxUnfragmentedSize); String getContextIdString(); String getSenderIdString(); String getRecipientIdString(); int rollbackRecipientSeq(); int rollbackRecipientReplay(); synchronized void setSenderSeq(int seq); synchronized void setReceiverSeq(int seq); void setLastBlockTag(byte[] tag); void setSenderKey(byte[] senderKey); void setRecipientKey(byte[] recipientKey); void setSeqMax(int seqMax); String getUri(); ContextRederivation.PHASE getContextRederivationPhase(); void setContextRederivationPhase(ContextRederivation.PHASE contextRederivationPhase); synchronized void increaseSenderSeq(); synchronized void checkIncomingSeq(int seq); synchronized void rollBack(); Code getCoAPCode(); void setCoAPCode(Code coapCode);  }