MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / getOctetString

Method getOctetString

modules/crypt/etc/ber.js:116–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 return result;
115 }
116 getOctetString() {
117 if (this.getTag() != 0x04)
118 throw new Error("BER: not a octet string");
119 return this.getChunk(this.getLength());
120 }
121 getObjectIdentifier() {
122 if (this.getTag() !== 0x06)
123 throw new Error("BER: not an object identifier");

Callers 2

decryptMethod · 0.95
decodeSKIFunction · 0.95

Calls 3

getTagMethod · 0.95
getChunkMethod · 0.95
getLengthMethod · 0.95

Tested by

no test coverage detected